草案
此页面不完整。
安全上下文
此特征只可用于
安全上下文
(HTTPS),在某些或所有
支持浏览器
.
XRRenderState
接口在
WebXR 设备 API
contains configurable values which affect how the imagery generated by an
XRSession
gets composited.
These properties include the range of distances from the viewer within which content should be rendered, the vertical field of view (for inline presentations), and a reference to the
XRWebGLLayer
being used as the target for rendering the scene prior to it being presented on the XR device's display or displays.
When you apply changes using the
XRSession
方法
updateRenderState()
, the specified changes take effect after the current animation frame has completed, but before the next one begins.
The followiing properties are available on
XRRenderState
对象。
baseLayer
只读
XRWebGLLayer
from which the browser's compositing system obtains the image for the XR session.
depthFar
只读
depthNear
只读
inlineVerticalFieldOfView
只读
inline
模式。
null
for all immersive sessions.
| 规范 | 状态 | 注释 |
|---|---|---|
|
WebXR 设备 API
The definition of 'XRRenderState' in that specification. |
工作草案 | 初始定义。 |
No compatibility data found. Please contribute data for "api.XRRenderState" (depth: 1) to the MDN 兼容性数据存储库 .