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): voidimport { renderTestScene } from '@driftengine/capture';Parameters
| Parameter | Type | Description |
|---|---|---|
scene | TestScene | |
camera | TestCamera | |
out | Uint8Array | |
depth? | Float32Array |