Builtin Library
- ..
- README.md825 B
- bindings.yaml393 B
- shader.wgsl2.6 KB
README.md
ao_trace
The ray-traced estimate of ambient occlusion: a cosine-weighted hemisphere of
short rays per texel, traced against the scene acceleration structure, so a
surface takes its occlusion from the geometry standing around it, including
geometry the depth buffer does not show. The fraction of rays that reach nothing
within radius is the visible fraction of the hemisphere and their mean
direction is the bent normal, both stored through the same ao_store the
screen-space estimate uses. The quality level's rays sets how many a texel
casts.
Includes
ao_common
Bindings
| name | kind |
|---|---|
scene_depth | texture_depth |
scene_tlas | acceleration_structure |
frame_cam | buffer |
ao_params | buffer |
ao_state | buffer |
ao_out | storage2d (rgba16f) |