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.

源代码

关于如何获取此模块的源代码,请查看 本页