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): void
import { renderDepth } from '@driftengine/capture';

Parameters

ParameterTypeDescription
setGaussianSet
cameraRasterCamera
depthFloat32Array
coverageFloat32Array

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.