@equinor/videx-3d
    Preparing search index...

    Type Alias OitMaterialProps

    Props for OitMaterial.

    type OitMaterialProps = {
        mode?: "inject" | "attach";
        shareUniforms?: string[];
        side?: Side;
        syncProperties?: string[];
    }
    Index

    Properties

    mode?: "inject" | "attach"
    • inject (default): patch the material's shaders at compile time (stock or inline materials whose shader does not already include oit.glsl).
    • attach: the material's shader already #includes oit.glsl and calls oitProcess (library materials); only wire up the variant machinery.
    shareUniforms?: string[]

    Names of custom uniform-container properties on the material to share by reference with the per-pass variants. Only needed for non-ShaderMaterial materials that read a custom uniforms object in onBeforeCompile.

    side?: Side

    Force a specific side on the OIT variants (e.g. DoubleSide). Defaults to the material's own side.

    syncProperties?: string[]

    Names of value properties (e.g. color, metalness) to keep live on the per-pass variants of a cloned built-in material. See OitMaterialOptions.syncProperties. Ignored for ShaderMaterials (already live via shared uniforms).