UNPKG

videx-3d

Version:

React 3D component library designed for sub surface visualizations in the browser

8 lines (7 loc) 405 B
import { Camera } from '@react-three/fiber'; import { Scene, WebGLRenderer } from 'three'; /** * Generate a depth buffer and read-back values as normalized device coordinates (ndc) * for objects assigned to the occluder layer */ export declare function getDepthBuffer(renderer: WebGLRenderer, scene: Scene, camera: Camera, width: number, height: number): Promise<Float32Array<ArrayBufferLike> | null>;