XRWebGLSubImage
XRWebGLSubImage 接口在渲染 WebGL 层时使用。
实例属性
继承其父级 XRSubImage 的属性。
XRWebGLSubImage.colorTexture只读 实验性-
用于
XRCompositionLayer渲染的颜色WebGLTexture对象。 XRWebGLSubImage.depthStencilTexture只读 实验性-
用于
XRCompositionLayer渲染的深度/模板WebGLTexture对象。 XRWebGLSubImage.imageIndex只读 实验性-
如果图层是使用
texture-array请求的,则表示纹理数组偏移量的数字;否则为null。 XRWebGLSubImage.colorTextureWidth只读 实验性-
表示 GL 附件像素宽度的数字。
XRWebGLSubImage.colorTextureHeight只读 实验性-
表示 GL 附件像素高度的数字。
规范
| 规范 |
|---|
| WebXR Layers API Level 1 # xrwebglsubimagetype |
浏览器兼容性
加载中…