This is a prototype Unity implementation of a grid-based hydraulic erosion simulation. It is based on the paper Fast Hydraulic and Thermal Erosion on the GPU by Balázs Jako and László Szirmay-Kalos as will as Fast Hydraulic Erosion Simulation and Visualization on GPU by Xing Mei, Jianwei Guo, and Xinguo Liu.
- Create initial terrain with Fractal Browian Motion on a compute shader.
- Simulate hydraulic erosion on a compute shader separated in multiple kernels following mainly the second paper mentionned.
- Runs in real time.
- Correct some instabilities in the simulation.
- Add thermal erosion.
| Initial Terrain | During The Simulation | After The Simulation |
|---|---|---|
![]() |
![]() |
![]() |
The demo scene is available in the Assets/Scenes/ErosionV2.unity file. The other scene is pretty much deprecated.


