Interactive water demo. You can also edit water behaviour by clicking "Water controls" to the right.
CONTROLS
Mouse: Move sphere around and see how it interacts with water.
CLICK + Mouse: Rotate camera.
Mousewheel: Zoom.
Water physics is approximated by simulating each pixel as a particle that has momentum, vertical position and force from neighboring particles.
The height of water is then converted to a normal map and applied to a nice reflective plane.
Source code: https://github.com/charlieamer/threejs-water