API

Class DepthReducer

This class is a small wrapper around the MinMaxReducer class to compute the min/max values of a depth texture

Hierarchy (View Summary)

Index
  • Disposes the depth reducer

    Parameters

    • disposeAll: boolean = true

      true to dispose all the resources. You should always call this function with true as the parameter (or without any parameter as it is the default one). This flag is meant to be used internally.

    Returns void

  • Sets the depth renderer to use to generate the depth map

    Parameters

    • depthRenderer: Nullable<DepthRenderer> = null

      The depth renderer to use. If not provided, a new one will be created automatically

    • type: number = Constants.TEXTURETYPE_HALF_FLOAT

      The texture type of the depth map (default: TEXTURETYPE_HALF_FLOAT)

    • forceFullscreenViewport: boolean = true

      Forces the post processes used for the reduction to be applied without taking into account viewport (defaults to true)

    Returns void