Try it live: https://pmalhaire.github.io/threejs-caustics
Forked as a direct application from "https://github.com/martinRenou/threejs-caustics"
Implementation details: https://medium.com/@martinRenou/real-time-rendering-of-water-caustics-59cda1d74aa