XRSession:renderState 属性
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
XRSession 对象的 renderState 只读属性返回描述应如何渲染用户的环境的 XRRenderState 对象。所提供的信息包括渲染对象的最小和最大距离、在 inline 会话模式下渲染时应使用的垂直视场角,以及用于内联合成的 XRWebGLLayer。
虽然该属性是只读的,但你可以调用 XRSession 的方法 updateRenderState() 来进行更改。
值
描述如何渲染场景的 XRRenderState 对象。
规范
| Specification |
|---|
| WebXR Device API> # dom-xrsession-renderstate> |
浏览器兼容性
Loading…