API

Interface TaaPostProcessTask

A Temporal Anti-Aliasing post-process task: accumulates jittered frames into an anti-aliased image. Inject at the end of a frame-graph chain.

interface TaaPostProcessTask {
    alphaMode?: PostProcessAlphaMode;
    clear?: boolean;
    disableOnCameraMove: boolean;
    engine: EngineContext;
    executionEnabled?: boolean;
    factor: number;
    name: string;
    outputTexture: RenderTarget;
    samples: number;
    scene?: SceneContext;
    sourceSamplingMode?: PostProcessSamplingMode;
    sourceTexture: RenderTarget;
    targetTexture: RenderTarget | null;
    viewport?: NormalizedViewport | null;
    dispose(): void;
    execute?(): number;
    record(): void;
    updateUniforms(): void;
}

Hierarchy (View Summary)

Index
clear?: boolean

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

disableOnCameraMove: boolean

Reset to the current frame whenever the camera moves.

Engine captured at task creation.

executionEnabled?: boolean

Runtime frame-graph execution gate, default true. When false, the frame graph keeps the task recorded and its resources alive but skips every pass or built-in execute() call for that frame. This is independent from any task-specific enabled state whose disabled transition may still execute work.

factor: number

Blend weight of the current frame (smaller = smoother / slower convergence).

name: string
outputTexture: RenderTarget
samples: number

Number of Halton jitter samples.

scene?: SceneContext

Owning scene for scene-bound tasks. Undefined for scene-less standalone frame graphs.

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