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:
XRDepthInformation.heightRead only Experimental
Contains the height of the depth buffer (number of rows).
XRDepthInformation.normDepthBufferFromNormViewRead only Experimental
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.
XRDepthInformation.rawValueToMetersRead only Experimental
Contains the scale factor by which the raw depth values must be multiplied in order to get the depths in meters.
XRDepthInformation.widthRead only Experimental
Contains the width of the depth buffer (number of columns).
|WebXR Depth Sensing Module |
BCD tables only load in the browser