草案
此页面不完整。
XRRenderStateInit
dictionary is a writeable version of the
XRRenderState
interface, and is used when calling an
XRSession
's
updateRenderState()
method to apply changes to the render state prior to rendering the next frame.
All distances are specified as floating-point values in meters ; you can specify a value of 50 centimeters using a value of 0.5, for example.
baseLayer
可选
XRWebGLLayer
object from which the WebXR compositor will obtain imagery. This is
null
在默认情况下。
depthFar
可选
depthNear
and
depthFar
. This is 1000 meters (1 kilometer) by default.
depthNear
可选
inlineVerticalFieldOfView
可选
inline
XRSession
. The projection matrix calculation also takes into account the output canvas's aspect ratio. This property
不必
be specified for immersive sessions, so the value is
null
by default for immersive sessions. The default value is otherwise π * 0.5 (half of the value of pi).
Any properties not specified in the
XRRenderStateInit
compliant object passed into
updateRenderState()
are left at their current values.
| 规范 | 状态 | 注释 |
|---|---|---|
|
WebXR 设备 API
The definition of 'XRRenderStateInit' in that specification. |
工作草案 | 初始定义。 |
No compatibility data found. Please contribute data for "api.XRRenderStateInit" (depth: 1) to the MDN 兼容性数据存储库 .
XRRenderStateInit
Navigator.xr
WebGLRenderingContext.makeXRCompatible()
XR
XRBoundedReferenceSpace
XRFrame
XRInputSource
XRInputSourceArray
XRInputSourceEvent
XRInputSourcesChangeEvent
XRPose
XRReferenceSpace
XRReferenceSpaceEvent
XRRenderState
XRRigidTransform
XRSession
XRSessionEvent
XRSpace
XRView
XRViewerPose
XRViewport
XRWebGLLayer