Secure context
This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.

This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The XRRenderState represents a set of configurable values which affect how XRSession's output is composited.


XRRenderState.depthNear Read only
The distance, in meters, of the near clip plane from the viewer.
XRRenderState.depthFar Read only
The distance, in meters, of the far clip plane from the viewer.
XRRenderState.inlineVerticalFieldOfView Read only
The default vertical field of view, in radians, used when computing projection matrices for "inline" XR sessions (as opposed to "immersive-*" XR sessions).
XRRenderState.baseLayer Read only
The XRWebGLLayer from which the User Agent's XR compositor obtains images.


Specification Status Comment
WebXR Device API
The definition of 'XRRenderState' in that specification.
Working Draft Initial definition.

Browser compatibility

No compatibility data found. Please contribute data for "api.XRRenderState" (depth: 1) to the MDN compatibility data repository.

See also

Document Tags and Contributors

Contributors to this page: bershanskiy
Last updated by: bershanskiy,