API

Interface TaaPostProcessTaskConfig

Configuration for createTaaPostProcessTask.

interface TaaPostProcessTaskConfig {
    alphaMode?: PostProcessAlphaMode;
    clear?: boolean;
    disableOnCameraMove?: boolean;
    factor?: number;
    name?: string;
    samples?: number;
    sourceRenderTask: RenderTask;
    sourceSamplingMode?: PostProcessSamplingMode;
    sourceTexture: RenderTarget;
    targetTexture?: RenderTarget | null;
    viewport?: NormalizedViewport | null;
}

Hierarchy (View Summary)

Index
clear?: boolean

Clear the target before drawing. Set false when several viewport passes share a target.

disableOnCameraMove?: boolean

Force a one-frame reset (output == current) whenever the camera moves (default: true). Avoids ghosting while the view changes.

factor?: number

Blend weight of the current frame against the accumulated history (default: 0.05).

name?: string
samples?: number

Number of jitter samples in the Halton sequence (default: 8).

sourceRenderTask: RenderTask

The render task that draws the scene into sourceTexture. TAA jitters this task's camera projection each frame (mirrors BJS FrameGraphTAATask.objectRendererTask).

sourceSamplingMode?: PostProcessSamplingMode
sourceTexture: RenderTarget
targetTexture?: RenderTarget | null
viewport?: NormalizedViewport | null