Skip to main content

Module shadows

Module shadows 

Source
Expand description

Shadow mapping subsystem for Proof Engine.

Provides depth-buffer shadow maps, cascaded shadow maps for directional lights, omnidirectional shadow maps for point lights (cubemap layout), shadow atlas packing, PCF filtering, variance shadow maps, configurable bias, distance fade, and shadow caster culling.

Structs§

CascadedShadowMap
Shadow mapping for directional lights using cascaded shadow maps. Splits the view frustum into 4 cascades for better shadow resolution distribution.
CasterBounds
AABB for culling shadow casters.
OmniShadowMap
Shadow map for point lights using a 6-face cubemap layout.
PcfKernel
Percentage-closer filtering kernel for soft shadows.
ShadowAtlas
Packs multiple shadow maps into a single atlas texture.
ShadowAtlasRegion
A region within the shadow atlas.
ShadowBias
Configurable shadow bias combining constant, slope-scaled, and normal offset.
ShadowConfig
Global shadow configuration.
ShadowMap
A single 2D depth buffer for shadow mapping.
ShadowStats
Statistics for shadow rendering.
ShadowSystem
Top-level shadow system that orchestrates shadow map allocation and rendering.
VarianceShadowMap
Variance shadow map for soft shadows using statistical analysis. Stores depth and depth-squared moments for Chebyshev’s inequality test.

Enums§

CubeFace
The six cube faces.
PcfMode
PCF filter mode selection.

Functions§

cull_shadow_casters
Cull shadow casters for a specific light.