Readonlyconfidencer32float: hit confidence in [0, 1]; 0 for misses, rough pixels and the background; 1 where a traced ray hit.
ReadonlygbufferWith settings.hitColor = 'history': the texture holding last frame's image (rgba16float,
render size), e.g. a render target the app draws the composite's final into after each frame,
so a mirror seen in a mirror shows its own reflection (one bounce deeper per frame). Null
(default): the G-buffer's lit target of the previous frame (three's lighting with its
specular IBL, without our SSR). The first 'history' frame, the frame after resetHistory() and
the frame after a change of hitColor or of this texture use this frame's scene colour instead.
Readonlyhitr32float: world hit distance, 0 where nothing was hit (the denoiser seam's convention).
ReadonlypresetW77: the settings the app passed at construction (without the preset): applyReflectionsPreset
returns every key a preset names to these, then to the package defaults, before applying one.
Readonlyradiancergba16float. rgb: confidence x hit radiance (the tracer's fallback is black, so a miss is 0 and
the composite adds its own probe / environment term for 1 - confidence); w: world ray length.
Rough pixels (above the threshold) and the background are 0. Traced hits: the shaded hit.
Trace rays for the misses (only does something with options.trace).
ReadonlyrendererTracer settings, read every frame.
Readonlysourcer32float: what the ray-traced pass did per pixel (core RT_SOURCE): 0 untouched, 1 traced
hit, 2 traced miss, 3 capped (kept the screen-space result), 4 traced hit shaded from the
on-screen colour. All 0 without trace or with rayTracing off.
Ray-traced pass settings, read every frame.
ReadonlyuniformsCamera of the last render(), for composites that rebuild world positions from depth.
projection x view of the traced frame (the composite projects hits for the screen-edge fade, W22).
W85 (T36): last frame's reflection variance (r32float, the denoiser's variance), for variance-guided tracing
(settings.temporalVarianceGuidedTracing / varianceThreshold). HybridReflections.denoiserVariance sets it
after each denoise; an app with its own denoiser can set it directly. Null: no variance, no extra rays.
What traced hits are lit with this frame: the probes at the hit (D901) or the environment mean; null before the first traced frame.
W75: the resolution the last trace ran at (latched by trace(), not read from the settings).
Per-pass GPU timestamps were asked for (options.timestamps).
The core ray-traced pass (null without trace, or before the first frame, or when it can't run here: traceError).
W89 (D5451): why the ray-traced pass is not running although a provider is attached (e.g. the device allows fewer
storage buffers per shader stage than the provider + hit shading need), or null. Screen space + probes go on without
it; one console warning says so. Cleared by setTraceProvider / setRaytracerHitShading.
W75: the frame the last trace ran on: the G-buffer's frame, or with reflectionResolution: 'half'
its half-size point-sampled copy (what the denoise seam must be given). Null before the first trace.
W75: the mode the last trace ran in, latched once per trace(): 'full' or 'half'.
HybridReflections.update() follows it, so a setting changed between render() and update()
takes effect on the next frame.
The core tracer (lists, counters, pyramid, miss list); recreated on resize, null before the first frame.
'subgroups' or 'workgroup' once the first frame ran.
StaticgatherVisible directional and hemisphere lights as the hit shading takes them (colour x intensity, world directions).
With timestamps: ms per core pass for the last traced frame ('rt begin', 'rt trace' with trace; 'total' sums all).
Debug counts of the last traced frame (rays traced, capped, hits, misses). Null without trace.
Render the G-buffer and trace. Returns the frame's contract inputs. With a jittered camera
(TAA), pass the jitter and the unjittered projection (FrameGBuffer.render, D405).
Forget last frame's colour (camera cut, scene switch); the next frame's hits use this frame's scene colour.
W82 (T70): turn trace.raytracerHitShading on / off (or change its sample count) after attaching a provider; recompiles the traced pass on the next frame. No-op without a provider.
Attach, swap (new scene) or detach (null) the trace provider; keeps the other trace options.
Rebuilds the traced pass on the next frame. Attaching turns rayTracing on.
Trace a frame the G-buffer already rendered (when you call gbuffer.render() yourself).
Screen-space reflections on any three scene. Each
render()renders the G-buffer, traces on the renderer's device (plus rays for the misses withtrace), and copies the results into radiance, hitDistance and confidence.