Import
XREstimatedLight is an addon, and must be imported explicitly, see Installation#Addons.
import { XREstimatedLight } from 'three/addons/webxr/XREstimatedLight.js';
Constructor
new XREstimatedLight( renderer : WebGLRenderer, environmentEstimation : boolean )
Constructs a new light.
| renderer |
The renderer. |
| environmentEstimation |
Whether to use environment estimation or not. Default is |
Classes
- XREstimatedLight
Properties
.directionalLight : DirectionalLight
Represents the primary light from the XR environment.
.environment : Texture
Will be set to a cube map in the SessionLightProbe if environment estimation is available and requested.
Default is null.
.lightProbe : LightProbe
The light probe that represents the estimated light.
Methods
.dispose()
Frees the GPU-related resources allocated by this instance. Call this method whenever this instance is no longer used in your app.