Hit shading from reflection probes at the hit point (D901, SPEC section 4): emissive + albedo x
(the probe lookup at P along N at roughness 1 x intensity + the directional / hemisphere lights of
environmentHitShading). Group 3 holds the lookup's atlas, sampler and table (bindings
0..2) and the lighting uniform (3); one storage buffer (the table). A set with several atlases
(probes of several sizes, D4700: a ProbeSet with mixed slotSizes, or lookup options with
atlases) binds atlases 1.. at 4.. (resources.atlases); a one-atlas set compiles as before.
Hit shading from reflection probes at the hit point (D901, SPEC section 4): emissive + albedo x (the probe lookup at P along N at roughness 1 x intensity + the directional / hemisphere lights of environmentHitShading). Group 3 holds the lookup's atlas, sampler and table (bindings 0..2) and the lighting uniform (3); one storage buffer (the table). A set with several atlases (probes of several sizes, D4700: a ProbeSet with mixed
slotSizes, or lookup options withatlases) binds atlases 1.. at 4.. (resources.atlases); a one-atlas set compiles as before.const shading = probeHitShading(device, set); // or (device, { layout, mirrorX, count }) const rt = createTracedReflections(device, { ..., hitShading: shading }); rt.dispatch(cmd, { ..., hitShadingBindGroup: shading.createBindGroup({ atlas: set.atlasView, sampler: set.sampler, table: set.table, atlases: set.atlasViews.slice(1) }) });