DriftCapture · function
renderDepth
The cloud's depth and coverage, one of each per pixel.
Explained in DriftCapture.
function renderDepth(set: GaussianSet, camera: RasterCamera, depth: Float32Array, coverage: Float32Array): voidimport { renderDepth } from '@driftengine/capture';Parameters
| Parameter | Type | Description |
|---|---|---|
set | GaussianSet | |
camera | RasterCamera | |
depth | Float32Array | |
coverage | Float32Array |
In depth
A pixel no light reached is left at zero in both, which is a coverage of nothing rather than a surface at the camera — a caller reading the depth alone would find a wall in front of its face.