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

    Function attachOitVariants

    • Make a library ShaderMaterial OIT-capable. The material's fragment shader is expected to already #include oit.glsl and call oitProcess(gl_FragColor) guarded by #ifdef USE_OIT (a no-op in the default pipeline). This adds the OIT uniforms to the material and attaches the per-pass variant machinery.

      Type Parameters

      • T extends ShaderMaterial

      Parameters

      • material: T

        the library ShaderMaterial to extend

      • Optionaloptions: OitMaterialOptions

        optional overrides (e.g. side)

      Returns T & OitCapableMaterial

      the same material, typed as OitCapableMaterial