Log inGet started
World

Tidewater: Oceans, Lakes, Rivers, Waterfalls, Swimming and Splashes Water Kit

Branchmain
Commit431c1b9967

README.md

ripples

The ripple field every Tidewater water samples: a GPU wave-equation simulation (computeShaders/tw_ripple_step, double-buffered, 60 Hz fixed substeps) on a 256² grid over 64 m centred on the camera (128² on Android and small browser viewports), with an absorbing border and a whole-texel recentre so the field never blurs as you move. Ripples.drop(x, y, z, strength, opts) injects a ring (opts.sync = true sends it to every peer); rain from weatherLink.now().rain (or a bound material's own rain) lands as statistical raindrops on the GPU at no CPU cost. Ripples.bindMaterial(key, { rain }) keeps ripple_map, ripple_region, water_time and rain_amount current on a material; unbindMaterial, setRain, setFocus(x, z) (centre on a point instead of the camera), clock() (the shared water clock wrapped for f32 shaders), describe(), step(dt).