Class XRRenderState
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
NOTE
ExperimentalXRRenderState interface of the WebXR Device 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.
[Value("XRRenderState")]
public class XRRenderState
- Inheritance
-
XRRenderState
- Inherited Members
Remarks
When you apply changes using the XRSession method UpdateRenderState(XRRenderStateInit), the specified changes take effect after the current animation frame has completed, but before the next one begins.
-RenderState
-UpdateRenderState(XRRenderStateInit)
-RequestSession(XRSessionMode, XRSessionInit)
Constructors
XRRenderState()
public XRRenderState()
Properties
BaseLayer
NOTE
ExperimentalbaseLayer property of theXRRenderState interface returns the XRWebGLLayer instance
that is the source of bitmap images and a description of how the image is to be rendered
in the device.
[Value("baseLayer")]
public XRWebGLLayer? BaseLayer { get; }
Property Value
- XRWebGLLayer
A XRWebGLLayer object which is used as the source of the world's
contents when rendering each frame of the scene.See the examples below to see how to use UpdateRenderState(XRRenderStateInit) to set the currentXRWebGLLayerused for rendering
the scene.
Remarks
This property is read-only; however, you can indirectly change its
value using UpdateRenderState(XRRenderStateInit).
DepthFar
NOTE
ExperimentaldepthFar read-only property of theXRRenderState interface returns the distance in meters of the far clip
plane from the viewer.
[Value("depthFar")]
public Number DepthFar { get; }
Property Value
Remarks
DepthNear
NOTE
ExperimentaldepthNear read-only property of theXRRenderState interface returns the distance in meters of the near clip
plane from the viewer.
[Value("depthNear")]
public Number DepthNear { get; }
Property Value
Remarks
InlineVerticalFieldOfView
NOTE
ExperimentalinlineVerticalFieldOfViewproperty of the XRRenderState interface returns the default vertical
field of view for
"inline" sessions and null for all immersivesessions.
[Value("inlineVerticalFieldOfView")]
public Number? InlineVerticalFieldOfView { get; }
Property Value
- Number
A Number for
"inline"sessions, which represents the default
field of view, andnullfor immersive sessions.
Remarks
Layers
NOTE
Experimentallayers property of the XRRenderState interface is an ordered array containing XRLayer objects that are displayed by the XR compositor.
[Value("layers")]
public XRLayer[] Layers { get; }