📄 threejs/Addons/Lights/LightProbeGenerator

File: LightProbeGenerator.md | Updated: 11/15/2025


title: LightProbeGenerator category: Addons layout: docs

LightProbeGenerator

Utility class for creating instances of LightProbe.

Import

LightProbeGenerator is an addon, and must be imported explicitly, see Installation#Addons.

import { LightProbeGenerator } from 'three/addons/lights/LightProbeGenerator.js';

Static Methods

.fromCubeRenderTarget( renderer : WebGPURenderer | WebGLRenderer, cubeRenderTarget : CubeRenderTarget | WebGLCubeRenderTarget ) : Promise.<LightProbe> (async)

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.

.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.

cubeTexture | The environment map.
---|---

Returns: The created light probe.

Source

examples/jsm/lights/LightProbeGenerator.js