@pmndrs/reflections
    Preparing search index...

    Interface TracedReflectionsSettings

    interface TracedReflectionsSettings {
        fallbackColor?: readonly [number, number, number];
        fallbackRoughness?: "mirror" | "surface";
        fillFootprint?: 4 | 2 | 3;
        fillMinWeightSum?: number;
        fillNormalPower?: number;
        fillPlaneTolerance?: number;
        fillRoughnessTolerance?: number;
        fillSourceMask?: number;
        hitColor?: "current" | "history";
        hitColorConeScale?: number;
        hitColorFilter?: "off" | "cone";
        hitLobeFilter?: number;
        hitLobeFilterMixed?: number;
        hitShadeOcclusion?: "off" | "screen";
        hitShadeVisibility?: "offscreen" | "all";
        hitShading?: "off" | "reshade";
        hitShadows?: boolean;
        hitSpecular?: boolean;
        iblFactor?: number;
        maxRayLength?: number;
        maxRaysPerTile?: number;
        maxTracedRaysPerFrame?: number;
        mirrorBias?: number;
        mirrorBiasCompensate?: boolean;
        normalOffset?: number;
        onScreenDepthTolerance?: number;
        rayLengthRoughnessFalloff?: number;
        reuseOnScreenHits?: boolean;
        roughnessThreshold?: number;
        tracedHalfRateMinRoughness?: number;
        tracedMissRate?: "full" | "half";
    }
    Index
    fallbackColor?: readonly [number, number, number]

    The constant fallback's colour (P.fallbackColor). Default [0, 0, 0].

    fallbackRoughness?: "mirror" | "surface"

    Roughness a traced miss takes its fallback at, as the SSSR tracer's fallbackRoughness (pass the tracer's setting so both agree): 'surface' (default) = each pixel's own rough-pixel lookup (mirror direction, its perceptual roughness), quad copies included; 'mirror' = the ray's direction at roughness 0 (FFX). Mirror pixels and a constant fallback are the same either way.

    fillFootprint?: 4 | 2 | 3

    Fill footprint in 2x2 quads across: 3 (default: the quad's 8 neighbours, of which the checkerboard traced the 4 edge ones), 2 or 4.

    fillMinWeightSum?: number

    Fill: below this weight sum the pixel keeps intersect's fallback. Default 0.01.

    fillNormalPower?: number

    Fill weight: pow(dot(n_p, n_q), this). Default 16; 0 off.

    fillPlaneTolerance?: number

    Fill weight: plane distance tolerance, relative to the view distance (BilateralFillWeights.planeTolerance). Default 0.01; 0 off.

    fillRoughnessTolerance?: number

    Fill weight: perceptual roughness difference tolerance. Default 0.1; 0 off.

    fillSourceMask?: number

    Fill taps: RT_SOURCE codes accepted, one bit per code. Default 0b10110 (traced hit, traced miss, on-screen traced hit).

    hitColor?: "current" | "history"

    Where an on-screen hit takes its colour, as the SSSR tracer's hitColor: 'current' (default) = inputs.color; 'history' = inputs.history reprojected through inputs.motion (D1002). Pass the tracer's setting so both sources agree.

    hitColorConeScale?: number

    W72 (D5024): the SSSR tracer's hitColorConeScale. Default (W76): the tracer's last dispatch's.

    hitColorFilter?: "off" | "cone"
    hitLobeFilter?: number

    Filtered importance sampling at hits (W45, D3550), as the SSSR tracer's hitLobeFilter (pass the tracer's): a hit's specular radiance is looked up wider by this many times the reflecting pixel's alpha. Default DEFAULT_HIT_LOBE_FILTER; 0 = the hit's own roughness.

    hitLobeFilterMixed?: number

    The lobe filter where hits mix (W52, D3641), as the SSSR tracer's hitLobeFilterMixed (pass the tracer's): a traced hit with a screen-space hit near it last frame (this pass's own source 0 on a glossy pixel, among 3x3 samples 5 px apart) looks up with hitLobeFilter x this. Below 1, the pass keeps a copy of last frame's source (r32float, render size). Default 1 (no change).

    hitShadeOcclusion?: "off" | "screen"

    Re-shade occlusion without a BVH ray (W52, D3642), as the SSSR tracer's hitShadeOcclusion (pass the tracer's): 'screen' = an on-screen re-shaded hit that takes no visibility ray (with hitShadeVisibility 'offscreen') marches 8 depth-buffer samples along R instead. Default 'off'.

    hitShadeVisibility?: "offscreen" | "all"

    Which re-shaded hits take D3513's visibility ray along R (W52, D3640): 'offscreen' (default) = only hits shaded from the BVH's material (as before: on-screen re-shades take none, D3542, so a surface shades the same whichever pass found it); 'all' = on-screen re-shades too, so a rim's lobe into the wheel well or a mirror seen in a mirror (blocked by the facing mirror) goes dark as the path tracer has it where the blocker is dark. Needs hitShadows (the ray is a shadow query). Costs one any-hit ray per on-screen hit.

    hitShading?: "off" | "reshade"

    As the SSSR tracer's hitShading (pass the tracer's, W44, D3540): with 'reshade' an on-screen hit takes this frame's scene colour (its diffuse) plus its specular lobe along the ray (hitShadeSurface, without the visibility ray, D3542), not the screen colour as is. Default 'reshade'.

    hitShadows?: boolean

    Hit shading may trace shadow rays (traceLightVisible, D903): environmentHitShading sends one per directional light from each traced hit it shades (not from on-screen reused hits, whose scene colour is already shadowed). Off: every light is unoccluded. Default true.

    hitSpecular?: boolean

    Shade the specular lobe and clear coat of traced hits whose provider has traceHitSpecular (W41, D3510). Off: hits are diffuse + emissive only, as before (what an on-screen colour without specular, hitColor 'current', compares against). Default true.

    iblFactor?: number

    The fallback's P.iblFactor. Default 1.

    maxRayLength?: number

    Ray length cap at roughness 0 (world units); the cap is this x exp(-falloff x alpha). Default 100 (FFX hybrid sample).

    maxRaysPerTile?: number

    Rays per 8x8 tile at most (1..64). Each frame every tile may trace min(this, floor(max rays per frame / tiles with misses last frame)) rays, and a rotating fraction of the tiles one more (the remainder of that division), so a capped frame spreads its budget over the screen and over time (D9, D56, D1100). Default 64 (no tile cap beyond the frame budget's share).

    maxTracedRaysPerFrame?: number

    Rays per frame at most (D9). Entries past it keep intersect's fallback. Default unlimited.

    mirrorBias?: number

    W72 (X2 #6, D5021): the SSSR tracer's mirrorBias, mirrorBiasCompensate and hitColorFilter. With compensation the traced directions come from the narrowed lobe (alpha x sqrt(1 - mirrorBias)), so the lobe filter here widens by hitLobeFilter x sqrt(mirrorBias) of the pixel's alpha (mirrorBiasSplit). Default (W76): what the tracer's last dispatch ran (outputs.settings), so the split always matches the rays; set them only to override.

    mirrorBiasCompensate?: boolean
    normalOffset?: number

    Origin offset along the normal, as a fraction of the view distance. Default 3e-3 (FFX hybrid sample).

    onScreenDepthTolerance?: number

    Relative view-distance tolerance for that test. Default 0.02.

    rayLengthRoughnessFalloff?: number

    Default 5 (FFX hybrid sample).

    reuseOnScreenHits?: boolean

    A hit the camera sees this frame takes the scene colour there (D55). Default true.

    roughnessThreshold?: number

    The SSSR tracer's roughnessThreshold (perceptual; pass the tracer's), read by hitLobeFilterMixed only. Default 0.447.

    tracedHalfRateMinRoughness?: number

    The SSSR tracer's tracedHalfRateMinRoughness, carried for adapters that pass one settings object to both (unused by this pass).

    tracedMissRate?: "full" | "half"

    W74 (plan X4, D5060): 'half' runs the bilateral fill over the SSSR tracer's fill list after the trace: each of its pixels (glossy misses of the quads intersect didn't send to the miss list this frame) takes its traced neighbours' radiance, hit distance, confidence and source (core/bilateral, fill* below). No usable neighbour: it keeps intersect's fallback, source 'capped'. Pass the tracer's tracedMissRate (the three adapter does). Default 'full' (no fill).