@pmndrs/reflections
    Preparing search index...

    Interface ScreenSpaceReflectionsInputs

    This tracer's frame inputs (W4 defines the general frame contract; the lead reconciles them).

    interface ScreenSpaceReflectionsInputs {
        albedo?: GPUTexture;
        camera: ScreenSpaceCamera;
        clearcoat?: GPUTexture;
        color: GPUTexture;
        depth: GPUTexture;
        fallbackBindGroup?: GPUBindGroup;
        history?: GPUTexture;
        hitShadingBindGroup?: GPUBindGroup;
        hitSource?: GPUTexture;
        metalness?: { channel: number; texture: GPUTexture };
        motion?: GPUTexture;
        motionVectorScale?: readonly [number, number];
        normal: GPUTexture;
        normalUnpack?: { add: number; mul: number };
        roughness: GPUTexture;
        roughnessChannel?: number;
        roughnessIsPerceptual?: boolean;
        roughnessUnpack?: { add: number; mul: number };
        variance?: GPUTexture;
    }
    Index
    albedo?: GPUTexture

    Base colour (linear rgb) for the re-shade's F0 = mix(0.04, albedo, metalness) (W44). Without it F0 is 0.04.

    clearcoat?: GPUTexture

    Clear coat for the re-shade (W44, D3541): r = factor, g = perceptual roughness. Without it no coat.

    color: GPUTexture

    Lit scene colour without specular (the radiance a hit returns).

    depth: GPUTexture

    Device depth: a depth texture, or r32float. Same size as the tracer.

    fallbackBindGroup?: GPUBindGroup

    Bind group for the radiance fallback's @group(1), if it has one.

    history?: GPUTexture

    Last frame's lit colour (any float format, render size), for hitColor: 'history': hits load it at the hit reprojected through motion, so a mirror seen in a mirror shows its reflection instead of the specular-free scene colour (D69).

    hitShadingBindGroup?: GPUBindGroup

    Bind group for hitSpecularShading's @group(3), if it has one.

    hitSource?: GPUTexture

    Last frame's per-pixel hit source (W52, D3641): RT_SOURCE codes in r (0 = the screen-space result, 1 traced hit, 2 traced miss, 3 capped, 4 traced hit shaded from the screen), render size, any float format; e.g. the traced pass's source before this frame's dispatch clears it. Read with the option hitSource for settings.hitLobeFilterMixed.

    metalness?: { channel: number; texture: GPUTexture }

    Metalness channel for the re-shade (W44). Without it 0.

    motion?: GPUTexture

    Motion vectors (uv-space current - previous, times motionVectorScale): read only with hitColor: 'history'; carried for the denoise seam.

    motionVectorScale?: readonly [number, number]

    Scale that turns a motion texel into uv-space current - previous. Default [1, 1].

    normal: GPUTexture

    World-space normal, decoded as normalize(mul * texel.xyz + add).

    normalUnpack?: { add: number; mul: number }

    Default { mul: 1, add: 0 } (raw float normals, e.g. rgba16float); unorm-packed normals use { mul: 2, add: -1 }.

    roughness: GPUTexture

    A material texture holding roughness in roughnessChannel.

    roughnessChannel?: number
    roughnessIsPerceptual?: boolean

    Roughness is perceptual and gets squared (three: true). Default true.

    roughnessUnpack?: { add: number; mul: number }

    roughness = texel[roughnessChannel] * mul + add, before squaring. Default { mul: 1, add: 0 }; glossiness is { mul: -1, add: 1 }.

    variance?: GPUTexture

    Last frame's reflection variance (denoiser output), for variance-guided tracing.