UNPKG

581 BTypeScriptView Raw
1import { Mesh } from "../../objects/Mesh.js";
2import { Texture } from "../../textures/Texture.js";
3import { WebGLRenderer } from "../WebGLRenderer.js";
4import { WebXRArrayCamera } from "./WebXRManager.js";
5
6export 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}