Builtin Library
- ..
- README.md647 B
- bindings.yaml458 B
- shader.wgsl3.7 KB
README.md
rt_ao_pass
Traces short hemisphere rays against the scene per pixel, so a surface darkens by how much geometry actually stands around it rather than by what a depth buffer happens to show.
Bindings
| name | kind |
|---|---|
scene_color | texture2d |
scene_depth | texture_depth |
scene_normal | texture2d |
scene_tlas | acceleration_structure |
frame_cam | buffer |
ao_params | buffer |
ao_out | storage2d (rgba8) |
Params
| name | type | what it is |
|---|---|---|
samples | float | hemisphere rays per pixel |
radius | float | world-space occlusion reach |