XRLightProbe: thuộc tính probeSpace
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.
Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.
Thuộc tính chỉ đọc probeSpace của giao diện XRLightProbe trả về một XRSpace theo dõi vị trí và hướng mà các ước tính ánh sáng có liên quan đến.
Giá trị
Một đối tượng XRSpace.
Ví dụ
Thuộc tính probeSpace trả về vị trí và hướng trong không gian mà ước tính ánh sáng có liên quan đến. Nó có thể cập nhật theo thời gian khi người dùng di chuyển xung quanh. Sử dụng phương thức XRFrame.getPose() để lấy trạng thái ánh sáng hiện tại với mỗi khung.
const lightProbe = await xrSession.requestLightProbe();
const probePose = xrFrame.getPose(lightProbe.probeSpace, xrReferenceSpace);
Thông số kỹ thuật
| Specification |
|---|
| WebXR Lighting Estimation API Level 1> # dom-xrlightprobe-probespace> |