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

    Subset of THREE.ShaderMaterialParameters the buildMaterial helper threads through. Other properties (uniforms, vertexShader, fragmentShader) are taken from the ShaderSource.

    interface BuildMaterialConfig {
        uniforms?: Record<string, IUniform<any>>;
        defines?: Record<string, string | number | boolean>;
        blending?: Blending;
        depthTest?: boolean;
        depthWrite?: boolean;
        transparent?: boolean;
        toneMapped?: boolean;
        side?: Side;
    }
    Index
    uniforms?: Record<string, IUniform<any>>

    Uniform table (passed verbatim to ShaderMaterial / TSL factory).

    defines?: Record<string, string | number | boolean>

    GLSL preprocessor defines for the WebGL path.

    blending?: Blending
    depthTest?: boolean
    depthWrite?: boolean
    transparent?: boolean
    toneMapped?: boolean
    side?: Side