XRProjectionLayer: ignoreDepthValues property
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
Thuộc tính chỉ đọc ignoreDepthValues của giao diện XRProjectionLayer là một giá trị boolean cho biết liệu compositor XR có đang sử dụng các giá trị depth buffer khi kết xuất layer hay không.
Giá trị
Một giá trị boolean. true cho biết compositor XR không sử dụng các giá trị depth buffer; false cho biết nội dung của depth buffer sẽ được sử dụng khi kết xuất layer.
Ví dụ
>Bỏ qua các giá trị độ sâu
Nếu tùy chọn depthFormat là 0 khi tạo projection layer, thuộc tính ignoreDepthValues sẽ là true. Xem thêm XRWebGLBinding.createProjectionLayer().
js
let glProjectionLayer = xrGLBinding.createProjectionLayer({
depthFormat: 0,
});
glProjectionLayer.ignoreDepthValues; // true
Thông số kỹ thuật
| Specification |
|---|
| WebXR Layers API Level 1> # dom-xrprojectionlayer-ignoredepthvalues> |