THREE.FrustumFit, for shadows: the shadow camera of the sun is fitted around the shapes on every frame, next to a fixed one that covers everywhere they go. Both shadow maps are the same size: the fitted one spends all of it on the shapes. Drag to look around, and press Space to pause. The other demo · GitHub
fittedfixed
shadow map, fitted
shadow map, fixed