API

Interface SsaoTask

Plain state and the standard frame-graph lifecycle; output is AO visibility, not scene color.

interface SsaoTask {
    camera: Camera;
    depthTexture: RenderTarget;
    enabled: boolean;
    engine: EngineContext;
    executionEnabled?: boolean;
    intensity: number;
    name: string;
    normalTexture: RenderTarget | null;
    outputTexture: RenderTarget;
    quality: SsaoQuality;
    radius: number;
    scene?: SceneContext;
    temporal: SsaoTemporalSettings;
    dispose(): void;
    execute?(): number;
    record(): void;
}

Hierarchy (View Summary)

Index
camera: Camera
depthTexture: RenderTarget
enabled: boolean

Engine captured at task creation.

executionEnabled?: boolean

Runtime frame-graph execution gate; undefined means enabled. 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.

intensity: number

Normalized strength, 0..1.

name: string
normalTexture: RenderTarget | null

Signed normal input, or null to reconstruct from depth. Changes reset temporal history.

outputTexture: RenderTarget
quality: SsaoQuality

Spatial sampling preset, independent of temporal history and working resolution.

radius: number
scene?: SceneContext

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

Stable reconstruction settings. Disable explicitly for spatial-only output; reset history with resetSsaoTemporal.