1 | import { Mesh } from "../../objects/Mesh.js";
|
2 | import { Texture } from "../../textures/Texture.js";
|
3 | import { WebGLRenderer } from "../WebGLRenderer.js";
|
4 | import { WebXRArrayCamera } from "./WebXRManager.js";
|
5 |
|
6 | export class WebXRDepthSensing {
|
7 | texture: Texture | null;
|
8 | mesh: Mesh | null;
|
9 |
|
10 | depthNear: number;
|
11 | depthFar: number;
|
12 |
|
13 | constructor();
|
14 |
|
15 | init(renderer: WebGLRenderer, depthData: XRWebGLDepthInformation, renderState: XRRenderState): void;
|
16 |
|
17 | getMesh(cameraXR: WebXRArrayCamera): Mesh | null;
|
18 |
|
19 | reset(): void;
|
20 |
|
21 | getDepthTexture(): Texture | null;
|
22 | }
|