API

Interface SsaoTaskConfig

Configuration for an AO-only, full-resolution frame-graph task.

interface SsaoTaskConfig {
    camera: Camera;
    depthTexture: RenderTarget;
    intensity?: number;
    name?: string;
    normalSpace?: "view" | "world";
    normalTexture?: RenderTarget;
    quality?: SsaoQuality;
    radius?: number;
    temporal?: boolean | SsaoTemporalOptions;
}
Index
camera: Camera
depthTexture: RenderTarget

Single-sample depth attachment produced before this task.

intensity?: number

Normalized strength, 0..1.

name?: string
normalSpace?: "view" | "world"

Coordinate space of supplied normals. Default "view".

normalTexture?: RenderTarget

Optional signed unit normals, matching the depth target's pixel dimensions.

quality?: SsaoQuality

Spatial sampling preset. Default "high" (18 samples per evaluated pixel).

radius?: number
temporal?: boolean | SsaoTemporalOptions

Reconstruction is enabled by default. False selects spatial-only output; options configure history and object velocity.