Capítulo 153 de 859
This class can be used to represent the environmental light of a XR session. It relies on the WebXR Lighting Estimation API.
import { XREstimatedLight } from 'three/addons/webxr/XREstimatedLight.js';
Constructor
| Signature |
|---|
new XREstimatedLight( renderer : WebGLRenderer, environmentEstimation : boolean ) |
Properties
| Property | Description |
|---|---|
.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. |
.lightProbe : LightProbe | The light probe that represents the estimated light. |
Methods
| Method | Description |
|---|---|
.dispose() | Frees the GPU-related resources allocated by this instance. Call this method whenever this instance is no longer used in your app. |