DriftCapture · function

renderTestScene

scene through camera into out, RGBA, and the distance along the camera's own axis into depth where one is given — zero where the ray met nothing.

Explained in DriftCapture.

function renderTestScene(scene: TestScene, camera: TestCamera, out: Uint8Array, depth?: Float32Array): void
import { renderTestScene } from '@driftengine/capture';

Parameters

ParameterTypeDescription
sceneTestScene
cameraTestCamera
outUint8Array
depth?Float32Array