@pmndrs/reflections
    Preparing search index...

    Interface HybridReflectionsOptions

    interface HybridReflectionsOptions {
        ao?: Texture<unknown, TextureEventMap> | ((uv: any) => any) | null;
        denoiser?: TemporalDenoiser<SpecularInputs> | null;
        denoiserHitSource?: boolean;
        denoiserKeepHistoryOnBlack?: boolean;
        denoiserMotion?: "ndc" | "uv";
        denoiserRoughness?: "alpha" | "perceptual";
        denoiserSampleDirection?: boolean;
        environment?: Texture<unknown, TextureEventMap> | null;
        environmentIntensity?: any;
        lit?: any;
        preset?: ReflectionsPresetName;
        probes?: ReflectionProbes | null;
        upsampled?:
            | {
                confidence: Texture;
                hitDistance: Texture;
                residual: Texture;
                source: Texture;
            }
            | null;
    }

    Hierarchy

    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.

    denoiser?: TemporalDenoiser<SpecularInputs> | null

    A denoiser-core TemporalDenoiser<SpecularInputs> on the pass's device. Its roughness gate should match the tracer's (FFX: roughnessThreshold in alpha, 0.447^2 for our default). Null: no denoising.

    denoiserHitSource?: boolean

    Initial value of HybridReflections.denoiserHitSource. Default false (or the preset's).

    denoiserKeepHistoryOnBlack?: boolean

    W78 (D5145): HybridReflections.denoiserKeepHistoryOnBlack. Default true, applied to a denoiser that has the option when it is attached; false keeps the denoiser's own (FFX's) black handling.

    denoiserMotion?: "ndc" | "uv"

    Motion convention the denoiser reads: 'ndc' (default, denoiser-core / FFX) or 'uv'.

    denoiserRoughness?: "alpha" | "perceptual"

    Roughness space the denoiser reads in guides.roughness: 'perceptual' (default, FFX's default) or 'alpha'.

    denoiserSampleDirection?: boolean

    Initial value of HybridReflections.denoiserSampleDirection. Default false.

    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).

    W77: the denoiser part of a named preset (core REFLECTION_PRESETS; none of today's presets has one: 'performance' is half resolution only). Applied with HybridReflections.setDenoiserHitSource unless the app configured the hit source itself: denoiserHitSource given here, or hit-source options already on the denoiser (FFX's constructor), which win. Pass the same preset to the pass. An unknown name warns once and is ignored.

    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.