Builtin Library
- ..
- README.md1.2 KB
- bindings.yaml423 B
- shader.wgsl6.7 KB
README.md
ao_temporal
Carries the occlusion estimate across the renders of each view. The
accumulation is a history target: ao_history is the image the view's
previous render wrote, ao_resolved the one this render writes, and
ao_state says whether the previous image is there to read. A texel finds its
surface on the previous grid through the view's previous view-projection,
takes each of the four history texels around that point only where the depth
stored there is the depth its own surface had, bounds the history by this
render's 3x3 neighbourhood, and blends one render in historyFrames of its
own estimate in. A surface uncovered this render, a view's first render and
its first after a cut start again from their own estimate.
The resolved texel holds occlusion in x, the bent normal laid flat in y and z, and the depth its surface stood at along the line of sight in w.
Includes
ao_grid
Bindings
| name | kind |
|---|---|
scene_depth | texture_depth |
ao_raw | texture2d |
ao_history | texture2d |
frame_cam | buffer |
ao_params | buffer |
ao_state | buffer |
ao_resolved | storage2d (rgba16f) |