Log inGet started
Package

ao_trace.computeShader

Newest version

This package holds more than this page lists. See all of its files in its world.

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

namekind
scene_depthtexture_depth
scene_tlasacceleration_structure
frame_cambuffer
ao_paramsbuffer
ao_statebuffer
ao_outstorage2d (rgba16f)