API

Class ReflectionProbe

Class used to generate realtime reflection / refraction cube textures

Index
  • Creates a new reflection probe

    Parameters

    • name: string

      defines the name of the probe

    • size: number

      defines the texture resolution (for each face)

    • scene: Scene

      defines the hosting scene

    • generateMipMaps: boolean = true

      defines if mip maps should be generated automatically (true by default)

    • useFloat: boolean = false

      defines if HDR data (float data) should be used to store colors (false by default)

    • linearSpace: boolean = false

      defines if the probe should be generated in linear space or not (false by default)

    Returns ReflectionProbe

metadata: any = null

Gets or sets an object used to store user defined information for the reflection probe.

name: string

defines the name of the probe

position: Vector3 = ...

Gets or sets probe position (center of the cube map)

  • Specifies whether or not the stencil and depth buffer are cleared between two rendering groups

    Parameters

    • renderingGroupId: number

      The rendering group id corresponding to its index

    • autoClearDepthStencil: boolean

      Automatically clears depth and stencil between groups if true.

    Returns void

  • Converts the reflection probe information to a readable string for debug purpose.

    Parameters

    • OptionalfullDetails: boolean

      Supports for multiple levels of logging within scene loading

    Returns string

    the human readable reflection probe info