Structs§
- Directional
Light - A directional light (e.g., sun).
- Light
Injection Config - Configuration for light injection.
- Point
Light - A point light.
- Shadow
Map - A shadow map with depth data.
- Spot
Light - A spot light.
Enums§
- Light
Source - A unified light source enum.
Constants§
- INJECT_
COMP_ SRC - Embedded compute shader for GPU light injection.
Functions§
- inject_
direct_ light - Inject direct lighting into the voxel grid.
- inject_
direct_ light_ with_ config - Inject direct lighting with configuration.
- inject_
emissive - Inject emissive lighting: self-illuminating voxels contribute their emission as radiance.
- inject_
emissive_ from_ sh - Inject emissive lighting from a separate emission channel stored in sh_coeffs[0].
- pcf_
sample - Percentage-closer filtering for soft shadows.
- shadow_
test - Test visibility of a world position against a shadow map. Returns 0.0 for fully shadowed, 1.0 for fully lit.