jeantimex/threejs-water — reverse-engineered prompt

Reverse engineered prompt

Build me a polished browser demo of a 3D water simulation. I want a pool with convincing real time waves, reflections, refractions, and those bright caustic light patterns on the walls and objects. Let me add and interact with a few floating objects like a sphere, box, and torus knot, with simple physics so they bob around based on buoyancy, gravity, and density. It should also support loading a GLTF model so I can swap in an external object and still have it work with the water effects.

Please include a couple of pool options, one standard rectangular pool and one with rounded corners, with easy controls for dimensions and a few basic visual settings. Clicking or dragging objects should feel accurate and responsive. I want it to feel close to Evan Wallace’s classic water demo, but built in Three.js and easy to extend later with more object shapes and pool styles. Look up current docs online if you need to.

Want more depth? Deep Reverse