Make a library ShaderMaterial OIT-capable. The material's fragment shader is
expected to already #includeoit.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.
Make a library
ShaderMaterialOIT-capable. The material's fragment shader is expected to already#includeoit.glsland calloitProcess(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.