API

Class LightingVolume

Class used to create a lighting volume from a directional light's shadow generator.

Index
  • Creates a new LightingVolume.

    Parameters

    • name: string

      The name of the lighting volume.

    • scene: Scene

      The scene the lighting volume belongs to.

    • OptionalshadowGenerator: any

      The shadow generator used to create the lighting volume. This is optional in the constructor, but must be set before calling updateMesh.

    • tesselation: number = 64

      The tesselation level of the lighting volume (default: 64).

    Returns LightingVolume

  • get mesh(): Mesh

    The mesh used as a support for the lighting volume. Note that this mesh is not automatically added to the scene's mesh array. If you want to render it, you need to add it manually.

    Returns Mesh