in MapBuilder you can find a rewritten version of it in MBmwater.c/.h files (maybe I modified it since last release, but the last one should also work fine).


Free world editor for 3D Gamestudio: MapBuilder Editor