@pmndrs/reflections
    Preparing search index...

    Interface ScreenSpaceCompositeOptions

    interface ScreenSpaceCompositeOptions {
        ao?: Texture<unknown, TextureEventMap> | ((uv: any) => any) | null;
        denoise?: any;
        denoised?: Texture<unknown, TextureEventMap> | null;
        depthAware?: any;
        environment?: Texture<unknown, TextureEventMap> | null;
        environmentIntensity?: any;
        lit?: any;
        probes?: ReflectionProbes | null;
        upsampled?:
            | {
                confidence: Texture;
                hitDistance: Texture;
                residual: Texture;
                source: Texture;
            }
            | null;
        uv?: any;
    }
    Index
    ao?: Texture<unknown, TextureEventMap> | ((uv: any) => any) | null

    Ambient occlusion in [0, 1] (1 = open) for Lagarde's specular occlusion on the probe / environment part (SSR and traced hits carry their own occlusion, D66): a texture (sampled at the composite uv, .r) or a function of the uv returning a float node. None: no occlusion.

    denoise?: any

    Float node or uniform: 1 = composite denoised, 0 = the raw signal. Default a uniform(0) (returned as denoise).

    denoised?: Texture<unknown, TextureEventMap> | null

    The denoised specular radiance (rgba16float, render size), e.g. HybridReflections.denoised. Used where denoise is 1; the raw signal elsewhere.

    depthAware?: any

    Depth-aware blend (W22, DIVERGES D2400), a float node or uniform in [0, 1]: 1 (default) keeps the probe / environment term off a screen-space or traced hit wherever the probe's box-projected surface lies behind the hit (the probe can't be what the ray sees there), so only the screen-edge fade blends toward it; 0 = FFX's mix(fallback, hit, confidence). Returned as depthAware.

    environment?: Texture<unknown, TextureEventMap> | null

    The environment three lit with (usually scene.environment), used only without probes (with probes, the atlas's environment slot stands in for it, as in three's lit term). Null: black.

    environmentIntensity?: any

    scene.environmentIntensity (a number or a node). Default 1. Used only when the G-buffer has no specular target: with it, three's own per-material intensity is in the target.

    lit?: any

    The lit image (HDR, linear). Default: the G-buffer's lit target (throws if it has none: lit: false).

    probes?: ReflectionProbes | null

    Probes the scene lights with (scene.environmentNode = reflectionProbes(probes)). The composite reads them with the same lookup (sampleReflectionProbes: volumes by coverage, then the atlas's environment slot), so its estimate of three's term matches it outside the volumes too. Only pass probes the lit image used, or the subtraction removes a term that was never added.

    upsampled?:
        | {
            confidence: Texture;
            hitDistance: Texture;
            residual: Texture;
            source: Texture;
        }
        | null

    W75 (plan X5, D5080, D5081): composite a half-res reflection upsampled to this size instead of the pass's own targets (HybridReflections passes it when ssr.settings.reflectionResolution is 'half'). residual is the upsampled specular - (1 - ssrWeight) x SO x probeSpecular of the half-res samples in rgb and their ssrWeight in a, so specular = residual.rgb + (1 - residual.a) x SO x probeSpecular with this pixel's own probe term: the probe keeps full-res detail where it is the reflection, and adds none where the hit is. Confidence, hit distance and source are the upsampled ones. The raw / denoised choice was made at half res, so signal and denoised equal specular here.

    uv?: any

    Screen uv to composite at. Default uv() (a full-screen pass).