02 VOXELS/
SPARSE VOLUMES
A raymarched voxel cluster traversed with a DDA grid walk.

voxels/readme.md
Approach
The cluster is a procedural occupancy function sampled on an integer grid. Rays walk the grid with an Amanatides–Woo DDA, so every step lands exactly on a cell boundary and there are no missed thin features.
Techniques
- Branch-light DDA using a step mask instead of nested ifs.
- Per-face ambient occlusion from the eight neighbouring cells.
- A coarse occupancy level to skip empty space before the fine walk.
What to look at
Look at the inside corners: the per-face AO gives the cubes weight without any lighting beyond a single directional term.