API

Interface ScreenSpaceReflectionTask

Produces the incident HDR reflection radiance of every reflective pixel (rough hits pre-filtered by the surface's roughness cone) and hit confidence in A; does not composite scene color.

interface ScreenSpaceReflectionTask {
    bias: number;
    camera: Camera;
    depthPyramid: DepthPyramid;
    edgeFade: number;
    enabled: boolean;
    engine: EngineContext;
    environment: ScreenSpaceReflectionEnvironment | null;
    environmentIntensity: number;
    environmentRotationY: number;
    executionEnabled?: boolean;
    maxDistance: number;
    maxRoughness: number;
    maxSteps: number;
    minReflectance: number;
    name: string;
    normalTexture: RenderTarget;
    outputTexture: RenderTarget;
    reflectivityTexture: RenderTarget;
    roughnessBlur: number;
    roughnessFadeStart: number;
    scene?: SceneContext;
    sourceTexture: RenderTarget;
    thickness: number;
    dispose(): void;
    execute?(): number;
    record(): void;
}

Hierarchy (View Summary)

  • Task
    • ScreenSpaceReflectionTask
Index
bias: number
camera: Camera
depthPyramid: DepthPyramid
edgeFade: number
enabled: boolean

Engine captured at task creation.

environmentIntensity: number
environmentRotationY: number
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.

maxDistance: number
maxRoughness: number
maxSteps: number
minReflectance: number
name: string
normalTexture: RenderTarget
outputTexture: RenderTarget

Owned rgba16float output at the inputs' resolution: RGB is the hit radiance premultiplied by confidence plus the environment weighted by one minus confidence, A the confidence. Not BRDF-weighted.

reflectivityTexture: RenderTarget
roughnessBlur: number
roughnessFadeStart: number
scene?: SceneContext

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

sourceTexture: RenderTarget
thickness: number