Utility class for creating instances of LightProbe.
LightProbeGenerator is an addon, and must be imported explicitly, see Installation#Addons.
import { LightProbeGenerator } from 'three/addons/lights/LightProbeGenerator.js';
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 cube render target must be in RGBA so cubeRenderTarget.texture.format must be set to RGBAFormat.
renderer
The renderer.
cubeRenderTarget
The environment map.
Returns: A Promise that resolves with the created light probe.
Creates a light probe from the given (radiance) environment map. The method expects that the environment map is represented as a cube texture.
cubeTexture
The environment map.
Returns: The created light probe.