videx-3d
Version:
React 3D component library designed for sub surface visualizations in the browser
6 lines (5 loc) • 302 B
TypeScript
import { PerspectiveCamera, Texture, WebGLRenderer } from 'three';
/**
* Read-back the normalized device coordinates from a depth texture
*/
export declare function readDepth(depthTexture: Texture, renderer: WebGLRenderer, camera: PerspectiveCamera, idx?: number): Promise<number | number[] | null>;