Erosion
Noise makes hills, but real land is shaped by water and gravity. The Erosion filter imitates both: rivers cut valleys that join into networks, loose rock slides down to its angle of repose, and rain cuts gullies into the slopes. Add a Filter (it starts as Erosion) after your generators.

Everything is in metres and degrees, so an erosion looks the same at any Resolution: a higher Resolution only adds finer gullies.

Erosion Strength blends the result in (0 = no change, 1 = all of it), and Erosion Seed changes the random rain. The rest is in four groups.
Three stages
Section titled “Three stages”The filter runs up to three stages, in this order, each with its own group and on/off switch:
- Valleys (fluvial): rivers cut valleys in proportion to the water draining through them, over many years. This makes the large valley networks.
- Talus (thermal): slopes steeper than the Talus Angle shed their loose rock downhill, which piles up as scree at their feet.
- Gullies (hydraulic): rain droplets run down the slopes, picking up and dropping sediment. This makes the fine gullies and the smooth sediment fans between them.

Valleys
Section titled “Valleys”| Setting | |
|---|---|
| Valley Strength | How deep the rivers cut. The most important setting. |
| Drainage Exponent | How much more a big river cuts than a small stream. Higher values give fewer, deeper main valleys. |
| Valley Max Depth | A soft limit on the valley depth, in metres. |
| Sediment Fill | Closed basins up to this many metres deep fill with flat sediment; deeper ones stay as hollows (lakes for a later Water node). |
| Hillslope Softening | Rounds the slopes between the valleys. |
| Valley Iterations | Steps of cutting: more steps give longer, more connected valley networks, and take longer. |
| Valley Resolution | The grid the valleys are worked out on (at most 256 by default). The result is blended into the full heightmap, so this sets the size of the smallest valley, not the sharpness. |

| Setting | |
|---|---|
| Talus Angle | The steepest slope loose rock can rest on, in degrees. Steeper slopes shed rock until they reach it. |
| Debris Depth | How many metres of loose rock a slope can shed. Below that the bedrock stays steep, so cliffs survive with scree at their feet instead of every slope turning into one flat facet. |
| Thermal Strength | How much of the excess each step moves. |
| Thermal Iterations | Steps of sliding. More steps let the scree run further. |
Gullies
Section titled “Gullies”| Setting | |
|---|---|
| Rain | How many droplets fall, per working cell. More rain cuts more and deeper gullies. |
| Droplet Lifetime | How many steps a droplet runs before it stops, so how long the gullies are. |
| Inertia | How much a droplet keeps its direction instead of turning straight downhill. Higher values give straighter, smoother gullies. |
| Sediment Capacity | How much sediment a droplet can carry. Higher values cut deeper. |
| Erosion Rate, Deposition Rate | How fast a droplet picks sediment up and drops it. |
| Evaporation | How fast droplets dry up. |
| Brush Radius | How wide each droplet erodes, in working cells. |
| Gully Resolution | The grid the droplets run on (at most 1024 by default). |

Thermal
Section titled “Thermal”The Thermal filter type runs only the talus stage, with the same Talus settings. It is quick, and crumbles any sharp shape into slopes at the Talus Angle with scree below: terrace edges, Voronoi cells, clipped plateaus.

Hard rock and rain
Section titled “Hard rock and rain”The Rock & Rain group makes the erosion uneven, as it is in nature.
Hardness Source decides where the rock is hard. Hard rock erodes less in every stage and holds steeper talus slopes, so it stays as ridges, caps and cliffs. Hardness Influence sets how much harder it is.
| Hardness Source | Hard rock |
|---|---|
| None | Everywhere the same. |
| Preceding Strata | The hard layers of a Strata filter before this one: ledges and benches. |
| Height | The higher the harder: a resistant caprock over soft lower slopes. |
| Noise | Patches about Hardness Noise Scale metres across. |

Rain Source decides where more rain falls, and Rain Contrast how dry the driest ground gets:
| Rain Source | Most rain falls |
|---|---|
| Uniform | Everywhere the same. |
| Parent Mask | Inside the mask the filter sits in. The mask then sets the rain instead of limiting the filter, so the whole terrain is eroded. |
| Height | On high ground. |
| Windward | On slopes facing the wind (Wind Azimuth, degrees clockwise from north). The lee side stays drier and smoother. |
| Noise | In broad random patches. |
Base level and fans
Section titled “Base level and fans”Base Level % is a floor the valleys never cut below, as a percentage of the terrain’s height range. Basins below it fill flat with sediment, so the valleys open out onto plains, like mountains above a basin floor.
Inhibition makes the rivers carry their sediment downhill and drop it where the slope eases: at higher values, fans of sediment spread where gullies reach a plain, and deltas grow into basins.

Erosion maps
Section titled “Erosion maps”Every Erosion and Thermal filter also records where it worked, as four maps from 0 to 1:
| Map | Where |
|---|---|
| Flow | Water ran: the valley floors and gullies. |
| Wear | Ground was worn away: channels and steep eroded slopes. |
| Deposition | Sediment settled: valley floors, fans and filled basins. |
| Debris | Scree piled up below steep slopes. |

Nodes after the filter can read them: a Feature mask of type Erosion Flow, Wear, Deposition or Debris, or a Ground Cover layer’s Erosion Map setting. Use them to paint gravel in the channels, rock on the worn slopes and scree on the debris.
On a 512 heightmap an Erosion takes about 5 seconds on a graphics card with CUDA, and about 10 on the CPU. The valley stage runs on the CPU either way. Only the Erosion and the nodes after it are recomputed when you change it, so put it last in the stack and tune the generators before it with the filter switched off.
