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 |
瀏覽器相容性
載入中…