Builtin Library
- ..
- README.md972 B
- bindings.yaml237 B
- shader.wgsl3.4 KB
README.md
ao_denoise
Smooths the occlusion estimate over its 3x3 neighbourhood before the accumulation takes it, so a render with no history (a capture, a view's first render, a surface just uncovered) shows the estimate without the grain of its few samples per texel. A tap counts by its distance from the texel and by how much it is the same surface: its distance from the texel's tangent plane along the bent normal, relative to the distance from the camera, and the angle between the two bent normals. A tap across a silhouette or a crease weighs nothing. Sky and texels no estimator reached are left as they are.
The estimate is read from ao_in and written to ao_denoised, both in the
estimate's layout: the bent normal, unnormalised, in xyz and the occlusion in w.
Includes
ao_grid
Bindings
| name | kind |
|---|---|
scene_depth | texture_depth |
ao_in | texture2d |
frame_cam | buffer |
ao_denoised | storage2d (rgba16f) |