Renderer · interface

DenoiseFrame

One frame's worth of what the filter needs, as flat arrays a pass would upload.

Explained in Hello world.

interface DenoiseFrame
import type { DenoiseFrame } from '@driftengine/core';

Properties

NameTypeDescription
radiancereadonlyFloat32ArrayThree floats a pixel.
depthreadonlyFloat32ArrayOne a pixel, in metres from the eye. A pixel that drew nothing may be Infinity.
normalreadonlyFloat32ArrayThree a pixel, unit length.
sourcereadonlyUint8ArrayWhich level of the chain answered each pixel. See filterStepFor.
widthreadonlynumber
heightreadonlynumber