File: WebXRDepthSensing.md | Updated: 11/15/2025
A XR module that manages the access to the Depth Sensing API.
Constructs a new depth sensing module.
The depth near far.
The depth near value.
A plane mesh for visualizing the depth texture.
An opaque texture representing the depth of the user's environment.
Returns a texture representing the depth of the user's environment.
Returns: The depth texture.
Returns a plane mesh that visualizes the depth texture.
cameraXR | The XR camera.
---|---
Returns: The plane mesh.
Inits the depth sensing module
depthData | The XR depth data.
---|---
renderState | The XR render state.
Resets the module