The simulation is live at https://myriadbytes.github.io/erosion/.
WebGPU support is needed, errors are logged to the console.
No dependencies were used, except gl-matrix
for 3D-related linear algebra.
The algorithm used for the simulation is based on a paper by Xing Mei, Philippe Decaudin and Bao-Gang Hu.
The simulation still needs some tweaking to be more stable in the long run and prevent artifacts on crests.
There is also flickering on the water layer, which seems to be related to simulation code. If anyone has any insight, feel free to reach out !
The UI code is pretty bad. I should have used a framework of some kind. Keep in mind I'm not a web developper 😓