A sunny pond with an island. WASD or the arrows move the ball, and space jumps. It floats and bobs on the waves, leaves a V-shaped wake, and splashes when it lands; the rings bounce off the shore and the island, the lily pads rise, fall and tilt on them and drift aside when the ball comes by, and the light the waves focus dances on the bottom. Left alone, the ball drives itself. V, or the button at the top right, shows the water: red its depth, green the height of the waves.
The waves are simulated: the wave equation on a 288×288 grid of 6 cm cells, in plain TypeScript, where only the wet cells move, so the shore and the island reflect them. Every step the heights are painted into a picture with updatePixelTexture, and two mesh3d materials, written for both cards, read it as a maps entry: the water for its ripples, foam and sun glints, and the bottom for where the waves focus the caustics. The ball and the lily pads read the same heights to float.