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
Section titled “Extends”ShaderMaterial
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new OccluderMaterial(
name
,scene
):OccluderMaterial
Constructor
Parameters
Section titled “Parameters”string
Name of the material in the scene
Scene
Scene the material belongs to
Returns
Section titled “Returns”OccluderMaterial
Overrides
Section titled “Overrides”ShaderMaterial.constructor