Builtin Library
- ..
- README.md369 B
- module.wgsl4.3 KB
README.md
ao_common
The prelude every ambient-occlusion kernel is written against: reconstructing a view-space position from depth, the spiral sampling pattern, and the reach a kernel measures against the frame's own pixels.
A technique's kernel includes this and supplies only its own occlusion estimate:
#include "@builtin::systems.ambientOcclusion.ao_common"