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()).

XRDepthInformation XRWebGLDepthInformation

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.height Read only

Chứa chiều cao của bộ đệm độ sâu (số hàng).

XRDepthInformation.normDepthBufferFromNormView Read only

Một XRRigidTransform cầ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ới widthheight của bộ đệm độ sâu để lấy tọa độ bộ đệm độ sâu tuyệt đối.

XRDepthInformation.rawValueToMeters Read 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.texture Read only Thử nghiệm

Một WebGLTexture chứa thông tin bộ đệm độ sâu dưới dạng texture mờ đục.

XRDepthInformation.width Read 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

Tương thích trình duyệt

Xem thêm