XRWebGLDepthInformation
XRWebGLDepthInformation 接口包含来自 GPU/WebGL 的深度信息(由 XRWebGLBinding.getDepthInformation() 返回)。
此接口继承其父级 XRDepthInformation 的属性。
实例属性
XRDepthInformation.height只读-
包含深度缓冲区的高度(行数)。
XRDepthInformation.normDepthBufferFromNormView只读-
一个
XRRigidTransform,在索引深度缓冲区时需要应用。矩阵表示的变换将坐标系从归一化视图坐标更改为归一化深度缓冲区坐标,然后可以通过深度缓冲区的width和height进行缩放,以获得绝对深度缓冲区坐标。 XRDepthInformation.rawValueToMeters只读-
包含原始深度值必须乘以才能获得米单位深度的比例因子。
XRWebGLDepthInformation.texture只读 实验性-
一个
WebGLTexture,包含深度缓冲区信息,作为一个不透明纹理。 XRDepthInformation.width只读-
包含深度缓冲区的宽度(列数)。
规范
| 规范 |
|---|
| WebXR Depth Sensing 模块 # xrwebgldepthinformation |
浏览器兼容性
加载中…