Home▸Optics & Light▸Water Caustics: Ray-Traced Light Refraction (2D)

🌅 Water Caustics: Ray-Traced Light Refraction (2D)

Canvas2D ray-splatting simulation of water caustics: refract sunlight through a wavy water surface with Snell's law (n=1.333) and watch photon density form shimmering caustic lines on a pool floor.

Optics & Light2DModerate60 FPS📱 Mobile-adapted⇄ 3D version
2d-water-caustics ↗ Open standalone
⚙ Under the hood

Canvas2D ray-splatting simulation of shimmering water caustics: refract sunlight through a wavy water surface with Snell's law (n=1.333) and watch photon density form bright caustic lines on a pool floor. Adjust wave amplitude, frequency, depth, source count and ray density.

OpticsRefractionSnell's LawRay TracingWaterLight

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)