Home▸Rendering & Computer Graphics▸Raycasting Shadows: Umbra, Penumbra and Soft Shadows from an Extended Light (2D)

🌙 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.

Rendering & Computer Graphics2DEasy60 FPS📱 Mobile-adapted⇄ 3D version
Raycasting Shadows: Umbra, Penumbra and Soft Shadows from an Extended Light (2D) ↗ Open standalone
⚙ 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

What did you find?

Add reproduction steps (optional)