Renderer · interface
DenoiseFrame
One frame's worth of what the filter needs, as flat arrays a pass would upload.
Explained in Hello world.
interface DenoiseFrameimport type { DenoiseFrame } from '@driftengine/core';Properties
| Name | Type | Description |
|---|---|---|
radiancereadonly | Float32Array | Three floats a pixel. |
depthreadonly | Float32Array | One a pixel, in metres from the eye. A pixel that drew nothing may be Infinity. |
normalreadonly | Float32Array | Three a pixel, unit length. |
sourcereadonly | Uint8Array | Which level of the chain answered each pixel. See filterStepFor. |
widthreadonly | number | |
heightreadonly | number |