Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.
Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
XRWebGLBinding interface is used to create layers that have a GPU backend.
Creates a new
XRWebGLBindingobject for the specified XR session and WebGL rendering context.
XRWebGLBinding.nativeProjectionScaleFactorRead only Experimental
scaleFactorthat was passed in during the construction of the projection layer. The native buffer size is scaled by this number.
XRCubeLayerobject, which is a layer that renders directly from a cubemap, and projects it onto the inside faces of a cube.
XRCylinderLayerobject which is a layer that takes up a curved rectangular space in the virtual environment.
XREquirectLayerobject which is a layer that maps equirectangular coded data onto the inside of a sphere.
XRProjectionLayerobject which is a layer that fills the entire view of the observer and is refreshed close to the device's native frame rate.
XRQuadLayerobject which is a two-dimensional object positioned and oriented in 3D space.
XRWebGLDepthInformationobject containing WebGL depth information.
WebGLTextureobject containing a reflection cube map texture.
XRWebGLSubImageobject representing the WebGL texture to render.
XRWebGLSubImageobject representing the WebGL texture to render for an
|WebXR Layers API Level 1 |
BCD tables only load in the browser