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

    Module rendering/materials/mesh/appearance

    Mesh appearance constants and the blending-mode → emission-shape mapping.

    Small on purpose, and shared by four consumers that must not disagree: the GLSL material wrapper, the TSL material wrapper, the TSL factory's build-time branch, and createMeshNode. Each of them has to answer the same two questions — "what does a mesh look like by default" and "which fragment emission does this blending mode want" — and a per-file copy of either answer is a divergence waiting to happen between the two backends.

    MeshColorSource
    MeshShadingMode
    MESH_DEFAULTS
    MESH_LIGHT_DIRECTION
    MESH_NORMAL_EPS_SQ
    MESH_SUPPORTED_BLENDING_MODES
    MESH_EMISSION_DEFINES
    MESH_COLOR_SOURCE_DEFINES
    MESH_SHADING_DEFINES
    clampShadeExponent
    clampShininess
    clampAppearanceFraction
    resolveMeshBlendingMode
    resolveMeshOutput
    syncMeshEmissionDefines
    syncMeshColorSourceDefines
    resolveMeshColorSource
    syncMeshShadingDefines