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. It’s recommended to render occluder meshes prior to visible meshes of a scene setting their renderOrder property to -1.

Extends

  • MeshBasicMaterial

Constructors

new OccluderMaterial()

new OccluderMaterial(name): OccluderMaterial

Constructor

Parameters

name: string = "OccluderMaterial"

Name of the material in the scene

Returns

OccluderMaterial

Overrides

MeshBasicMaterial.constructor