Inheritance: EventDispatcher → Object3D → Group →
This class can be used to represent the environmental light of a XR session. It relies on the WebXR Lighting Estimation API.
XREstimatedLight is an addon, and must be imported explicitly, see Installation#Addons.
import { XREstimatedLight } from 'three/addons/webxr/XREstimatedLight.js';
Constructs a new light.
renderer
The renderer.
environmentEstimation
Whether to use environment estimation or not.
Default is true.
Represents the primary light from the XR environment.
Will be set to a cube map in the SessionLightProbe if environment estimation is available and requested.
Default is null.
The light probe that represents the estimated light.
Frees the GPU-related resources allocated by this instance. Call this method whenever this instance is no longer used in your app.