Limited Availability
WebXR
id: webxr-depth-sensing
Depth sensing
An
XRDepthInformation object represents a measurement of the distance from the user's device to the real-world geometry in the user's environment.
Baseline Status:
This feature is currently Limited and is missing in at least one major browser engine.
Desktop Browser Engine Support
Google Chrome
90
Supported
Mozilla Firefox
—
Unsupported
Apple Safari
—
Unsupported
Microsoft Edge
90
Supported
Mobile Browser Engine Support
Chrome Android
90
Firefox Android
—
Safari iOS
—
Specifications and References
MDN Browser Compat Data Keys:
api.XRCPUDepthInformation ↗
api.XRCPUDepthInformation.data ↗
api.XRCPUDepthInformation.getDepthInMeters ↗
api.XRDepthInformation ↗
api.XRDepthInformation.height ↗
api.XRDepthInformation.normDepthBufferFromNormView ↗
api.XRDepthInformation.rawValueToMeters ↗
api.XRDepthInformation.width ↗
api.XRFrame.getDepthInformation ↗
api.XRSession.depthDataFormat ↗
api.XRSession.depthUsage ↗
api.XRWebGLBinding.getDepthInformation ↗
api.XRWebGLDepthInformation ↗
api.XRWebGLDepthInformation.texture ↗