probegi_upsample.computeShader
- README.md805 B
- bindings.yaml672 B
- shader.wgsl5.1 KB
This package holds more than this page lists. See all of its files in its world.
README.md
probegi_upsample
Lifts the grid probegi_apply read the probe field on to every pixel of the
frame. Each pixel takes the four grid texels around it, each weighed by its
bilinear share, by how near the surface it was read at lies to the plane of the
pixel's own surface, and by how closely their normals agree; a pixel none of
them describes reads the field itself. It multiplies the irradiance by the
surface's diffuse colour (its base colour times one minus its metallic), the
field's gain and tint, and the share of the hemisphere the scene's occlusion
channel leaves open as far as contactOcclusion takes it. The result is the
light to add to the frame; a pixel with no surface holds zero. It also writes
how much of the sky each surface sees, the picture the field publishes as
skyVisibility.