OptionaldepthHit acceptance thickness (view-space units, = world units when the view matrix has no scale).
The full thickness is
depthBufferThickness + thicknessRoughnessFactor * alpha + thicknessLengthFactor * worldRayLength.
Defaults: THICKNESS_HYBRID (0.2, 10, 0.01); THICKNESS_CONSTANT is FFX SSSR's 0.015.
OptionalfallbackColour of the constant fallback. Default [0, 0, 0].
OptionalfallbackRoughness a screen-space miss takes its fallback at (the (1 - confidence) part of radiance).
'surface' (default, D1806): the lookup pixels above roughnessThreshold get, along the pixel's
mirror direction at its own perceptual roughness, per pixel (quad copies included), so radiance
shown as is (or denoised) carries the probe's blur. 'mirror' (FFX SSSR): the ray's sampled
direction at roughness 0, sharp, left for the denoiser to blur. Mirror pixels (alpha < 1e-4),
confidence-1 pixels and a constant fallback are the same either way.
OptionalframeOverride the frame index (blue-noise rotation). Default: increments per dispatch.
OptionalhitWhere a screen-space hit takes its colour: 'current' (default) = inputs.color, this frame's
scene colour without specular (FFX); 'history' = inputs.history, last frame's lit colour
reprojected through inputs.motion (FFX's hybrid sample, PICA, SSSR 2015; D69).
OptionalhitW76 (X1 #3 folded into X2's cone, D5002 / D5100): SSSR 2015 slide 85's grazing shrink of the
cone, coneTan *= mix(1, mix(saturate(2 NdotV), 1, sqrt(perceptual roughness)), this): a floor
seen at a grazing angle takes a narrower cone (a finer pyramid mip), so the cone's blur at low
elevations drops. Only with hitColorFilter: 'cone'. 0..1 (1 = the slide's), default
DEFAULT_HIT_COLOR_CONE_GRAZING (0, off: at 1 the line-spread gate's r 0.15 line comes out x0.84). (W71's
hitLobeFilterGrazing, the same shrink on hitLobeFilter, measured as a no-op and was removed.)
OptionalhitW72 (D5020): scales the cone's width (1 = the reflected lobe's full width at half maximum). Default 1.
OptionalhitW72 (X2 #5, D5020): how a screen-space hit's screen colour is filtered. 'off' (default, FFX): the
hit's texel. 'cone': SSSR 2015's pre-filtered colour, the hit-colour pyramid (this frame's scene
colour without specular; last frame's with hitColor: 'history' and hitShading: 'off') read at
log2 of the lobe cone's width in px where the ray hits (alpha-based cone x ray length, projected at
the hit's depth), so long rays blur and contacts stay sharp. With hitShading: 'reshade' it is the
hit's diffuse part. The first 'cone' frame builds its intersect variant with
createComputePipelineAsync (and warms the downsampler's kernels); until then, or where the device's
per-stage limits leave no room for the pyramid's sampled texture (warned once), frames run as 'off'.
The pyramid is freed on the next 'off' frame. The cone stands for the lobe's spread the sample leaves out: the whole lobe (a double
blur, as hitLobeFilter 1), or sqrt(mirrorBias) of it with mirrorBiasCompensate.
Default (W76) DEFAULT_HIT_COLOR_FILTER ('cone', with compensation at mirrorBias 0.5);
'off' is the one switch back to the pre-W76 tracer (FFX's hit texel, the full lobe).
OptionalhitFiltered importance sampling at re-shaded hits (W45, D3550; Colbert & Krivanek 2007). One ray sampled from a glossy pixel's lobe stands for the lobe's whole cone, so the hit's specular lobe looks its radiance up wider: alpha^2 + (hitLobeFilter x the pixel's alpha)^2. The mean stays, the variance goes: a softbox seen sharply through a mirror floor by one ray in fifty no longer reaches the denoiser as a firefly it clips (carConcept's skirt lost 39-46 % of its reflection that way). Default DEFAULT_HIT_LOBE_FILTER; 0 = the hit's own roughness (W44).
OptionalhitThe lobe filter where hits mix (W52, D3641): a re-shaded hit whose neighbourhood held
ray-traced hits last frame (inputs.hitSource, RT_SOURCE 1 or 4, among 3x3 samples 3 px apart)
looks up with hitLobeFilter x mix(1, this, min(1, 2 x traced share)). The FFX denoiser spreads
such hits over their traced neighbours (D3610: carConcept's skirt lip), and the filter's wider
lookup is what made them bright. Needs the option hitSource and the input. Default 1 (no
change); 0 = no lobe filter where hits mix.
OptionalhitRe-shade occlusion without a BVH (W52, D3642): 'screen' = a re-shaded hit's lobe marches 8 depth-buffer samples along R from the hit (out to 0.3 x its camera distance); blocked, its specular goes dark as a blocked traced lobe (D3513: x smoothstep(0.3, 1, roughness)). A rim's lobe into the wheel well, a sill's into the car's underside. Only blockers the camera sees count. Default 'off' (D3540: no visibility).
OptionalhitHow a hit's colour accounts for the view direction (W44, D3540): 'reshade' (default) keeps the hit's diffuse from the screen and evaluates its specular along the reflected ray; 'off' reuses the screen colour (FFX). See ScreenSpaceHitShading.
OptionaliblScales the radiance fallback. Default 1.
OptionalmaxW80 (D5180): hits the march may try per ray, 1..8 (default 1 = FFX: the first place the ray goes
behind the depth buffer is validated once, and a rejected one is a miss). With N > 1 a candidate
that fails validation (thickness, back face, too near the origin) while on screen and not
background restarts the march just past that leaf cell, so a ray that crosses a thin foreground
object while behind it can still reach a surface the camera sees. Shares the
maxTraversalIntersections budget; every leaf cell behind an object is another candidate, so it
only gets through overlaps a few pixels wide. Cannot find surfaces hidden from the camera.
OptionalmaxDefault 128.
OptionalminGlossy rays stop once this few invocations of their subgroup (workgroup in the fallback) still march (FFX's early exit, FFX's value 4). Mirrors ignore it. Default 0 (W101, D5560): every glossy ray marches to its end. Which rays share a subgroup follows the ray list's atomic append order, which changes every dispatch, so with the exit a still frame traces differently each time (rest flicker); 0 costs intersect +0.05-0.14 ms at 1080p.
OptionalmirrorBias of the glossy ray sample toward the mirror direction, 0..1 (SSSR 2015, PICA; D49). The
VNDF's radial random number is scaled by 1 - mirrorBias, which truncates the lobe: less noise,
a sharper (biased) reflection. 1 = mirror. With mirrorBiasCompensate (and the cone) it narrows
the lobe instead, and the filters put the width back (D5022). Default (W76): 0.5 when compensation
is on (the default), else 0 (FFX SSSR's full lobe, bit for bit).
OptionalmirrorW72 (X2 #6, D5022; needs hitColorFilter: 'cone' and f > 0, ignored without): mirrorBias f narrows the
sampled lobe to alpha x sqrt(1 - f) instead of truncating it, and the cone and hitLobeFilter
supply alpha x sqrt(f), so the blur the bias removes comes back as filtering (less noise, the same
total lobe width; SSSR 2015 shipped f 0.7 with its cone). See mirrorBiasSplit. Default
(W76) true when mirrorBias is unset too, false when the app sets mirrorBias (it keeps D49's
truncation); false keeps the cone with D49's truncation (and mirrorBias 0 unless set).
OptionalmissMiss list: a ray goes there when its confidence is below this. Default 0.9 (hybrid sample).
OptionalmissesA ray-traced pass overwrites the miss list's pixels (and their quad copies) after this dispatch (the three adapter sets it while its traced pass runs). The 'ratio' resolve then leaves those pixels to it and doesn't reuse their screen-space rays elsewhere, so screen and traced hits don't mix (D3660). W76: it also switches the ray-tracing defaults on (an unset thickness becomes 'relative' at RT_THICKNESS_DEPTH_FACTOR; see resolveScreenSpaceSettings). Default false.
OptionalmissMiss list: only rays with perceptual roughness <= this (squared like roughnessThreshold). Default 1 (all traced rays). The hybrid sample's 0.22 alpha is 0.469.
OptionalmostPyramid mip glossy rays start on (mirrors always use 0). Default 0.
OptionalquadW71 (X1 #1, D5000): which pixel of a 2x2 quad traces when samplesPerQuad < 4 (the others take
its ray). 'fixed' (default, FFX): the top-left, every frame, so the copy's 2x2 grid stays put under
TAA / an upscaler. 'frame': the corner cycles with the frame index (diagonal first). 'pattern': a
4x4 Latin square over quads, offset by the frame index, so neighbouring quads trace different
corners. Composes with quadCopy: 'sameSurface' (the same-surface test is against the chosen base).
OptionalquadW58 (D3740): which quad pixels take the ray of their quad's base pixel when samplesPerQuad < 4.
'always' (default, FFX): every glossy pixel of the quad, so a silhouette inside a 2x2 quad shows
the base pixel's reflection on both sides (a 2x2 stair step and, on a mirror floor next to a car,
the car's reflection copied onto the floor) until the denoiser blurs it. 'sameSurface': a pixel
whose view depth differs from the base's by more than 5 % or whose normal by more than ~25 degrees
traces its own ray (and goes to the miss list on its own). Costs a few more rays along edges.
OptionalrayW73 (X3 phase A, D5040): what the glossy pixels without their own ray get when samplesPerQuad < 4.
'copy' (default, FFX): the quad's one ray, copied (see quadCopy). 'ratio': a resolve after
intersect reuses the pixel's own ray, its quad's ray and rayReuseTaps traced neighbours within
rayReuseRadius, each weighted by this pixel's GGX BRDF x cos along the direction from this
pixel to the neighbour's hit over the pdf the neighbour sampled it with, normalised (the ratio
estimator of SSSR 2015 and DiligentFX). Radiance, confidence and hit distance are all resolved
with the same weights; neighbours on another surface (normal, plane distance) are skipped, and
a pixel with nothing usable keeps the copy. Also smooths the pixels that have their own ray. The
first 'ratio' frame allocates a 16 B/px record buffer and builds two pipelines.
OptionalrayThe 'ratio' resolve reuses only rays of the pixel's own hit source (screen-space hit vs miss: its
own ray's, else its quad's; D3660) unless this is true. Mixed, a pixel's confidence becomes the
share of hits around it, which the three composite's depth-aware blend (D2400) reads as one ray's
thickness confidence and hands the hits the whole weight (carConcept's door, SSR only: raw signal
1.04 -> 1.38): mix only with depthAware 0 or a composite that is linear in confidence. Default false.
OptionalrayThe 'ratio' taps' rotation: 'frame' (default) re-rotates them per pixel and frame, so the resolve's error moves every frame; 'pixel' fixes them per pixel, so the error stays put for the denoiser's temporal pass to treat as bias (W73 phase 2, D5046).
OptionalrayRadius of the 'ratio' taps in px at perceptual roughness >= 0.2, scaled by sat(5 r) below (DiligentFX's 4 sat(5 r)): near-mirrors reuse only their quad. Default 4.
OptionalrayNeighbour taps of the 'ratio' resolve besides the pixel's own quad: 4 or 8. Default 8.
OptionalreflectionW75 (plan X5, D5080): the resolution the tracer, the ray-traced pass and (through
HybridReflections) the denoiser run at. 'full' (default): the G-buffer's size. 'half':
ceil(w / 2) x ceil(h / 2), from a half-size frame point-sampled at one pixel per 2x2 quad (core
createHalfResolutionFrame); HybridReflections denoises there and upsamples the residual
(denoised - probeEnv) with a joint bilateral filter (core createReflectionUpsample). The
pass's radiance / hitDistance / confidence / source are then half size. Composites are
built for one mode: after a change, rebuild them (hybrid.rebuild() and your composite() calls).
OptionalroughnessPerceptual roughness below which a pixel traces; squared to alpha at the pass boundary (FFX compares alpha, DIVERGES D43). Default 0.447 (alpha 0.1998, FFX's 0.2).
OptionalsampleW78 (X3 phase B, D5140): the tracer also writes each pixel's sample direction and pdf (core
options.sampleDirection, tracer.outputs.sampleDirection), for a denoiser that weights
samples by BRDF / pdf (HybridReflections.denoiserSampleDirection, FFX brdfWeights). Taken at
the tracer's creation: a flip rebuilds the tracer (history drops). Full resolution only (the
half-res path doesn't hand it on). Default false.
OptionalsamplesMinimum rays per 2x2 quad for glossy (non-mirror) pixels: 1, 2 or 4. Default 1.
OptionaltemporalCarried in the uniform block for the denoiser seam; unused by these passes. Default 0.7.
OptionaltemporalTrace extra quad pixels where last frame's variance > varianceThreshold. Needs inputs.variance. Default true.
OptionalthicknessW71 (X1 #2, D5001): thickness that scales with depth. With thicknessDepthMode 'add' (default)
the hit acceptance thickness gains thicknessDepthFactor x |view z of the hit|; with 'relative'
it is that term alone (Diligent's distance / viewZ < 0.025: this at 0.025), so one value serves
every scene scale. 0 is off in both modes: 'relative' takes effect only once the factor is above 0
(a zero thickness would make the hit test undefined). Default 0; W76: with missesTraced (ray
tracing on) and the mode 'relative' (or unset), RT_THICKNESS_DEPTH_FACTOR. 0 restores the
pre-W76 test; a factor set without a mode keeps 'add'.
OptionalthicknessSee thicknessDepthFactor. Default 'add'; W76: 'relative' with missesTraced when the factor is unset too. 'relative' with a factor of 0 is the same as 'add' (off).
OptionalthicknessThickness added per world unit of ray length. Default 0.01.
OptionalthicknessThickness added per unit of alpha (linear roughness) of the reflecting pixel. Default 10.
OptionaltracedPerceptual roughness from which tracedMissRate: 'half' applies; below it (mirrors and
near-mirrors) every miss is traced. Default DEFAULT_TRACED_HALF_RATE_MIN_ROUGHNESS.
OptionaltracedW74 (plan X4, D5060): which glossy misses go to the ray-traced pass. 'full' (default): every
miss (FFX's hybrid sample). 'half': of the glossy misses at perceptual roughness >=
tracedHalfRateMinRoughness, only those of every other 2x2 quad (a checkerboard of quads that
flips each frame) are traced; the others go to the fill list (missFillCapacity entries after
the miss list's own), and the traced pass's bilateral fill (TracedReflectionsSettings. tracedMissRate: 'half') gives them their traced neighbours' result. Pass the same to both.
Needs missList; without the traced pass the fill entries keep this pass's fallback.
OptionalvarianceDefault 0.
The pass's settings: core's tracer settings plus where the reflections run (W75, plan X5).