ao_filter.computeShader
- README.md731 B
- bindings.yaml173 B
- shader.wgsl3.9 KB
This package holds more than this page lists. See all of its files in its world.
README.md
ao_filter
Lifts the resolved occlusion from the estimate's grid to the frame's resolution
and writes the scene's occlusion channel (@scene.ao), which every lit
material's indirect term reads at its own pixel: occlusion in r, the bent normal
laid flat on the octahedron in g and b, and in a whether a bent normal was
written. Each of the 4x4 grid taps around the pixel is weighed by a tent around
the pixel's own grid position and by how close the depth of the surface it
describes is to the pixel's, so occlusion does not cross a silhouette.
Includes
ao_grid
Bindings
| name | kind |
|---|---|
scene_depth | texture_depth |
ao_resolved | texture2d |
scene_occlusion | storage2d (rgba8) |