XRWebGLDepthInformation
Khả dụng hạn chế
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.
Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
Giao diện XRWebGLDepthInformation chứa thông tin độ sâu từ GPU/WebGL (được trả về bởi XRWebGLBinding.getDepthInformation()).
Giao diện này kế thừa các thuộc tính từ cha của nó, XRDepthInformation.
Thuộc tính phiên bản
XRDepthInformation.heightRead only-
Chứa chiều cao của bộ đệm độ sâu (số hàng).
XRDepthInformation.normDepthBufferFromNormViewRead only-
Một
XRRigidTransformcần được áp dụng khi lập chỉ mục vào bộ đệm độ sâu. Phép biến đổi mà ma trận đại diện thay đổi hệ tọa độ từ tọa độ góc nhìn chuẩn hóa sang tọa độ bộ đệm độ sâu chuẩn hóa, có thể được nhân vớiwidthvàheightcủa bộ đệm độ sâu để lấy tọa độ bộ đệm độ sâu tuyệt đối. XRDepthInformation.rawValueToMetersRead only-
Chứa hệ số tỷ lệ mà các giá trị độ sâu thô phải được nhân với để có được độ sâu tính bằng mét.
XRWebGLDepthInformation.textureRead only Thử nghiệm-
Một
WebGLTexturechứa thông tin bộ đệm độ sâu dưới dạng texture mờ đục. XRDepthInformation.widthRead only-
Chứa chiều rộng của bộ đệm độ sâu (số cột).
Thông số kỹ thuật
| Thông số kỹ thuật |
|---|
| WebXR Depth Sensing Module> # xrwebgldepthinformation> |