31 lines
1.0 KiB
Markdown
31 lines
1.0 KiB
Markdown
# advanced_erosion_terrain_heightmap_generation
|
|
|
|
A standalone Rust terrain generator using `egui`, inspired by Runevision's fast erosion filter and the reference material in `plan/`.
|
|
|
|
See here:
|
|
|
|
https://www.shadertoy.com/view/wXcfWn
|
|
https://www.shadertoy.com/view/sf23W1
|
|
https://blog.runevision.com/2026/03/fast-and-gorgeous-erosion-filter.html
|
|
|
|
## Project layout
|
|
|
|
- `src/` contains the standalone Rust app and generator implementation.
|
|
- `tests/erosion_prototype.py` is the Python reference prototype used to guide the Rust port.
|
|
- `plan/` contains the inspiration and reference documents for the terrain look.
|
|
|
|
## Running
|
|
|
|
```bash
|
|
cargo run
|
|
```
|
|
|
|
## Current UI
|
|
|
|
The app uses an `egui` desktop interface with:
|
|
|
|
- A left control panel with `Generation` and `Advanced` tabs
|
|
- Generation controls for image width, image height, generation scale, erosion scale, and random seed
|
|
- Advanced controls for strength, gully weight, detail, and octaves
|
|
- A right preview area showing both the normalized heightmap and the shaded bumpmap
|