🌅 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.
⚙ 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