API

Interface ScreenSpaceReflectionCompositeTask

Replaces the environment specular of PBR surfaces by screen-space reflections, in linear HDR.

interface ScreenSpaceReflectionCompositeTask {
    colorTexture: RenderTarget;
    engine: EngineContext;
    executionEnabled?: boolean;
    name: string;
    outputTexture: RenderTarget;
    reflections: ScreenSpaceReflectionTask;
    scene?: SceneContext;
    specularTexture: RenderTarget;
    strength: number;
    dispose(): void;
    execute?(): number;
    record(): void;
}

Hierarchy (View Summary)

  • Task
    • ScreenSpaceReflectionCompositeTask
Index
colorTexture: RenderTarget

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.

name: string
outputTexture: RenderTarget

Linear HDR rgba16float composite, the size of colorTexture; tone-map it (e.g. createImageProcessingTask).

scene?: SceneContext

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

specularTexture: RenderTarget
strength: number

Mutable share of the environment specular the reflections replace (see the config).