@pmndrs/reflections
    Preparing search index...

    Class HybridReflections

    Index
    denoise: boolean = true

    Denoise when a denoiser is attached. Default true.

    denoiseActive: UniformNode<"float", number> = ...

    1 while composites use the denoised radiance (set by update(); read by every composite).

    denoised: StorageTexture

    The denoiser's output (rgba16float, render size), copied each frame update() denoises.

    denoiserHitSource: boolean = false

    W53 (D3660): hand the denoiser a per-pixel hit source (screen-space hit / traced hit / miss, core HIT_SOURCE, built by the seam from the tracer's confidence and the ray-traced pass's codes), so a denoiser that supports it keeps them apart (FFX: separateHitSources: true, set on the denoiser itself). Default false: the denoiser gets what it got before.

    denoiserSampleDirection: boolean = false

    W78 (X3 phase B, D5140): hand the denoiser each pixel's sample direction and pdf (SpecularInputs.direction, the tracer's outputs.sampleDirection), so a denoiser that supports it weights samples by BRDF / pdf (FFX: brdfWeights, set on the denoiser itself). Needs the pass's settings.sampleDirection; without that output nothing is passed. Full resolution only. Default false.

    denoiserVariance: boolean = false

    W85 (T36): hand the denoiser's variance (FFX: denoiser.variance, Denoiser #25) back to the tracer, so settings.temporalVarianceGuidedTracing / varianceThreshold add rays where the denoiser is unsure (FFX's variance-guided tracing; the quad's other pixels trace where last frame's variance is above the threshold). Off by default; needs a denoiser with a variance getter, else nothing happens.

    depthAware: UniformNode<"float", number> = ...

    Depth-aware blend (W22, D2400; the composite's depthAware), shared by the signal pass and every composite: 1 (default) keeps the probe off hits it lies behind, 0 = FFX's confidence blend.

    hitSourceUnsupported: boolean = false

    W77: set when a hit-source mode other than 'off' could not reach the denoiser (it has no setOptions): the per-pixel source is still handed over, but the denoiser may ignore it. Warned once.

    roughnessThreshold: UniformNode<"float", number> = ...

    The tracer's perceptual roughness threshold, for the source view.

    signalTarget: RenderTarget

    The raw signal as handed to the denoiser (rgba16float render target).

    upsampleSettings: ReflectionUpsampleSettings = {}

    W75 (X5): the joint bilateral upsample's weights (core ReflectionUpsampleSettings: plane tolerance, normal power, roughness tolerance, source mask, min weight sum, wide fallback), read every frame with ssr.settings.reflectionResolution: 'half'.

    • get upsampled(): Upsampled | null

      W75: the half-res path's full-res targets (null until a composite is built in 'half' mode): the upsampled residual (rgba16float, rgb = specular - (1 - ssrWeight) x SO x probeSpecular of the half-res samples, a = their ssrWeight; D5081), confidence, hit distance and source (r32float), read by composites built in 'half' mode.

      Returns Upsampled | null

    • With the pass's timestamps: GPU ms of the last half-res frame's upsample ('upsample'); empty in 'full' mode.

      Returns Promise<ReadonlyMap<string, number>>

    • Rebuild the signal pass after changing options (probes, environment, ao: e.g. on a scene switch); composites built before keep their old sources, so rebuild those too. Drops history.

      Returns void

    • W77: back to the app's own hit source: denoiserHitSource as constructed, and the attached denoiser's own options as it was built with (what applyReflectionsPreset does for a preset without one).

      Returns void

    • W77 (W53, D3660): what the denoiser gets as a per-pixel hit source and how it uses it: 'off', 'hits' (screen-space vs traced hits kept apart; misses blend with either) or 'all'. Sets denoiserHitSource and the denoiser's own options (core denoiserHitSourceOptions, FFX's names) through its setOptions when it has one; warns once when a mode other than 'off' can't reach the denoiser. Drops the denoiser's history. Kept for a denoiser attached later.

      Parameters

      Returns void

    • Debug: which source filled each pixel (HYBRID_SOURCE): background, SSR hit (the composite's ssrWeight >= 0.5; FFX's confidence with the depth-aware blend off), traced hit, rough (above the threshold, probe/env only), else the miss's fallback (probe where local coverage >= 0.5, environment otherwise).

      Parameters

      Returns any