🌙 Raycasting Shadows: Umbra, Penumbra and Soft Shadows from an Extended Light (2D)
2D soft-shadow lab: a ball in front of an extended lamp casts an umbra, penumbra and antumbra. Side view with rays, face-on screen image, probe view of the lamp, exact circle-overlap formula and five in-page numerical checks.
⚙ Under the hood
2D soft-shadow lab: a ball in front of an extended lamp casts an umbra, penumbra and antumbra. Side view with rays, face-on screen image, probe view of the lamp, exact circle-overlap formula and five in-page numerical checks.
raycastingshadowsumbrapenumbrasoft shadowextended light source
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install