Luxar Viewer API Documentation - v2026.9.22
    Preparing search index...

    Type Alias PhysicalKnobValues

    PhysicalKnobValues: Record<PhysicalMeshKnobKey, number> & {
        sheen_color?: string;
        attenuation_color?: string;
        alpha_cutoff?: number;
        refract_data?: boolean;
    }

    The AUTHORED physical knobs of a mesh layer, as the panel lists them read-only.

    Only knobs actually present are returned — an absent knob renders as three's default, and the panel says so rather than printing a number the author never wrote. Read off the node, else off its first mesh descendant, for the same kind=partition reason as deriveMeshAttrFromDescendants.

    Type Declaration

    • Optionalsheen_color?: string
    • Optionalattenuation_color?: string
    • Optionalalpha_cutoff?: number
    • Optionalrefract_data?: boolean

      The LIVE refract_data switch (spec §3.4 Phase 3): the glass draws after, and refracts, the emissive data. Always present on a physical layer (absent authored attr = false) so the toggle always has a state to show.