Props for OitMaterial.
Props for OitMaterial.
Optionalmode?: "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.OptionalshareUniforms?: 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.
Optionalside?: SideForce a specific side on the OIT variants (e.g. DoubleSide). Defaults to
the material's own side.
OptionalsyncProperties?: 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).
A declarative helper that makes the material of its parent
meshparticipate in the OITRenderPass pipeline, so transparent inline materials are resolved order-independently instead of being treated as opaque occluders.Drop it in as a sibling of the material, inside the
mesh:It renders an invisible, empty
object3Dpurely to locate the parent mesh; the wiring is idempotent and a no-op outside the OIT pipeline.