OccluderMaterial
Occluder material
Occluders are elements of a scene that are not rendered by themselves but still participate in occlusion queries. Usually, occluder is a base mesh (average approximation) of a body representing its real counterpart in a scene. Occluders are used to mask visible virtual objects behind them (like geometries of a 3D scene behind user’s body). Applying OccluderMaterial to a mesh makes it an occluder.
Extends
ShaderMaterial
Constructors
new OccluderMaterial()
new OccluderMaterial(
name
,scene
):OccluderMaterial
Constructor
Parameters
• name: string
Name of the material in the scene
• scene: Scene
Scene the material belongs to
Returns
Overrides
ShaderMaterial.constructor