Skip to content

myriadbytes/erosion

Repository files navigation

WebGPU Hydraulic Erosion Simulation

image

Try it in your browser !

The simulation is live at https://myriadbytes.github.io/erosion/.
WebGPU support is needed, errors are logged to the console.

Info

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.

Bugs

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 😓

About

Hardward-Accelerated Hydrolic Erosion Simulation running in the browser, using the WebGPU API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published