Expand description
Generic 3D BFS light propagation with two-phase removal for voxel engines.
Implement VoxelAccess for your storage, call propagate / remove,
and apply the returned LightUpdates. The library never mutates your data.
For repeated operations, use LightEngine which reuses internal buffers.
Structs§
- Light
Engine - Light
Update - A pending light level change at a world-space position.
- Voxel
Info - Minimal information the algorithm needs about a single voxel position.
Traits§
- Voxel
Access - Trait for querying voxel data. Implementors map world-space coordinates to their internal storage (chunks, octrees, flat arrays, etc.).