threejs-shadow-systems
Installation
SKILL.md
Shadow Systems
Use a single shadow map only when its receiver region is genuinely bounded. For large moving views, make shadow coverage an explicit spatial hierarchy.
Cached clipmap workflow
- Define concentric light-space square levels.
- Snap each level center to its own texel grid.
- Cross-fade adjacent levels in shader space.
- Refresh near levels continuously.
- Cache coarse levels and update them under a frame budget.
- Invalidate intersecting levels when important casters or streamed terrain change.
- Scale normal bias by world-space texel width.
Read references/cached-clipmap-shadows.md before implementing a large-world directional light.