Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commit15ce14a4c1

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

namekind
scene_depthtexture_depth
ao_rawtexture2d
ao_historytexture2d
frame_cambuffer
ao_paramsbuffer
ao_statebuffer
ao_resolvedstorage2d (rgba16f)