XRDepthInformation interface contains information about the distance from the user’s device to the real-world geometry in the user’s environment.
This interface is the parent of:
Depth information from the CPU (returned by
Depth information from WebGL (returned by
You will usually interact with these child interfaces. However,
XRDepthInformation provides some useful properties that are inherited:
Contains the height of the depth buffer (number of rows).
XRRigidTransformthat needs to be applied when indexing into the depth buffer. The transformation that the matrix represents changes the coordinate system from normalized view coordinates to normalized depth-buffer coordinates that can then be scaled by depth buffer’s
heightto obtain the absolute depth-buffer coordinates.
Contains the scale factor by which the raw depth values must be multiplied in order to get the depths in meters.
Contains the width of the depth buffer (number of columns).
|WebXR Depth Sensing Module (WebXR Depth Sensing)|
BCD tables only load in the browser