Builtin Library
- ..
- README.md827 B
- module.wgsl7.3 KB
README.md
probe_gi_bounce
The light a ray of the field's own takes from the field where it hits a surface:
gi_sample_bounce(position, normal, view) returns the irradiance over pi the probes
around the point hold and how much of the field reaches it, formed from the same
weights as gi_sample_along (trilinear share, how squarely the surface faces each
probe, the Chebyshev bound on how much of the way to the point each probe sees clear,
and for a coarser cascade the sight lines its probes hold with the finest cascade's
witness) without the share of the sky the point sees. A pass including it also
includes probe_gi_common and probe_gi first and declares the irr_atlas,
vis_atlas and probe_state textures and a filtering sampler, gi_smp, the
visibility atlas is read through. The irradiance is read texel by texel.