probe_gi.shaderModule
- README.md813 B
- module.wgsl12.8 KB
This package holds more than this page lists. See all of its files in its world.
README.md
probe_gi
A surface's irradiance read out of the probe field: gi_sample(position, normal, view) returns the irradiance over pi the eight probes around the point hold,
weighted by trilinear share, by how squarely the surface faces each probe and by
the Chebyshev bound on how much of the way to the point each probe sees clear,
with how much of the field reaches the point as reach. Where the finest cascade
holding the point fades into the next coarser one, each coarser probe and the
finer probe that weighs in most at the point must see each other (gi_sees), and the
coarser cascade takes its share only as far as its probes see the point as clear
as the finer cascade's (seen). A pass including it also includes
probe_gi_common and declares the irr_atlas, vis_atlas and probe_state
textures.