LightProbeGenerator

Utility class for creating instances of LightProbe.

Static Methods

.fromCubeTexture(cubeTexture : CubeTexture) → LightProbe

Creates a light probe from the given (radiance) environment map. The method expects that the environment map is represented as a cube texture.

.fromCubeRenderTarget(renderer : WebGLRenderer, cubeRenderTarget : WebGLCubeRenderTarget) → LightProbe

Creates a light probe from the given (radiance) environment map. The method expects that the environment map is represented as a cube render target.

The format of the cube render target must be set to RGBA.

Source

For more info on how to obtain the source code of this module see this page.