Skip to main content

Module atlas_2d

Module atlas_2d 

Source
Expand description

2D shadow atlas — directional and spot lights.

Owns the texture_depth_2d_array atlas the lane samples for non-point shadow casters. One layer per shadow-casting directional / spot light.

The dimensions are passed in by the lane — different quality tiers (StandardShadowsLane, LowResShadowsLane, …) use different resolutions but the algorithm is identical.

Structs§

Atlas2D
2D atlas resources — owned by whichever shadows lane created it.

Functions§

collect_pass
Records one shadow pass for a directional or spot light.