Skip to content

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.

  • ShaderMaterial

new OccluderMaterial(name, scene): OccluderMaterial

Constructor

string

Name of the material in the scene

Scene

Scene the material belongs to

OccluderMaterial

ShaderMaterial.constructor