Erosion
RustEdit ProThe nodes in the Erosion category of the Terrain Graph's Add Node menu. Round sockets carry maps and square sockets carry single values. See Graph editor.
Erosion
Rivers carve branching valleys and gullies, from broad valleys down to fine channels, and leave fans of sediment.
Inputs
| Input | Kind | Default | Notes |
|---|---|---|---|
| Terrain | Map | The terrain the simulation runs on. | |
| Mask | Map | Where the change is kept: white keeps it, black gives back the input. Not wired = everywhere. | |
| Rainfall Mask | Map | Where it rains: white is full rain, black none. Unwired, it rains everywhere. | |
| Hardness | Map | Hard ground (white) resists the streams and keeps its shape. | |
| Rock | Map | Bare rock (white): it cuts more slowly and no loose material stays on it. | |
| Seed | Whole number | 42 | Change it to get a different random result. |
| Duration | Whole number | 10 | How long it rains. Longer runs cut deeper valleys and take longer. Slider from 0 to 50. |
| Simulation Cells | Whole number | 2048 | How many cells across the simulation runs on. More resolves finer features and is slower. The detail it misses is added back. Slider from 256 to 4096. |
| Valley Scale [m] | Number | 1000 | Size of the largest valleys in metres. Small values only cut fine channels; large values carve broad valleys first, then finer ones into them. Slider from 20 to 5000. |
| Downcutting | Number | 0.4 | How deep the streams cut, on every scale. 0 keeps the terrain apart from the ageing. Slider from 0 to 1. |
| Hierarchy | Number | 0.85 | How much streams that collect others cut deeper. 0: every stream cuts alike. 1: the main valleys stand out. Slider from 0 to 1. |
| Meandering | Number | 0.6 | How much the streams wander on their way down. 0 runs them straight down the slope. Slider from 0 to 1. |
| Detail | Number | 0.6 | How far the gullies reach and how strongly the finer scales cut. 1 cuts gullies everywhere, as strong as the large valleys. Slider from 0 to 1. |
| Crisp Valleys | On or off | Off | The large valleys cut deeper and keep steeper walls. |
| Fill Angle [deg] | Number | 8 | Streams lay what they cannot carry where their course runs flatter than this angle, the more the flatter. Slider from 0 to 60. |
| Fill Share | Number | 0.9 | How much of that load a stream lays down. High values give smooth channel floors and soft fans. Slider from 0 to 1. |
| Long Fans | On or off | Off | Streams carry their load further before they lay it down, so fans reach further out. |
| Settling | On or off | Off | Loose deposits steeper than the Deposit Angle slide down. |
| Deposit Angle [deg] | Number | 30 | With Settling: the steepest slope loose deposits keep. Slider from 1 to 60. Shows only with some settings. |
| Ageing | Number | 0.2 | How much the large forms wear down: crests and summits round. It acts mostly on the coarse scales. Slider from 0 to 1. |
| Hillslope Creep [m] | Number | 0 | Soil creeps downhill at the end: ridges round and hollows fill. About the size in metres of what it rounds off. 0 is off. Slider from 0 to 50. |
| Runoff Angle [deg] | Number | 10 | Ground well steeper than this angle ages faster. Slider from 1 to 60. |
| Strength | Number | 1 | How much of the change is kept. 1 keeps all of it, 0 gives back the input. Slider from 0 to 1. |
| White at [m] | Number | 10 | Metres of change that make Erosion, Deposition and Sediment fully white. Slider from 0.1 to 100. |
Outputs
| Output | Kind |
|---|---|
| Terrain | Map. The terrain after the simulation. |
| Simulated Flow | Map. Where the water ran, from 0 (none) to 1 (a big stream). |
| Erosion | Map. Where ground was carried away: 1 where at least White at metres went. |
| Deposition | Map. Where material was left: 1 where at least White at metres piled up. |
| Sediment | Map. Loose material the water left that was not carried off again: 1 at White at metres. |
Flow
Where rain water collects and runs: a flow map and a river mask.
Inputs
| Input | Kind | Default | Notes |
|---|---|---|---|
| Height | Map | ||
| Detail | Choice | Low | How finely the water is followed. Higher is slower. Options: Low, Medium, High. |
| Threshold | Number | 0.6 | Flow above this counts as a river. Slider from 0 to 1. |
| Softness | Number | 0.05 | How gradually the river mask fades in around the threshold. Slider from 0 to 0.5. |
Outputs
| Output | Kind |
|---|---|
| Flow | Map. How much water passes each point, from 0 (none) to 1 (a big river). |
| Rivers | Map. 1 where the flow is above Threshold. |
Fluvial Particles
Water particle erosion: rain runs downhill, carving gullies and leaving sediment.
Inputs
| Input | Kind | Default | Notes |
|---|---|---|---|
| Terrain | Map | The terrain the simulation runs on. | |
| Mask | Map | Where the change is kept: white keeps it, black gives back the input. Not wired = everywhere. | |
| Preset | Choice | Custom | Loads a complete set of erosion settings. Custom uses the settings below. Options: Custom, Subtle, Moderate, Intense, Gullies. |
| Simulation Cells | Whole number | 1024 | How many cells across the simulation runs on. More resolves finer features and is slower. The detail it misses is added back. Slider from 128 to 2048. |
| Rain Strength | Number | 2 | How many water particles fall in each wave. More rain carves more. Slider from 0 to 4. |
| Rain Waves | Whole number | 24 | How many times it rains. Each wave runs on the terrain the last one left. More waves carve deeper but take longer. Slider from 1 to 64. |
| Initial Water | Number | 1 | How much water each particle starts with. Particles with more water carry more sediment. Slider from 0.1 to 4. |
| Friction | Number | 0.02 | Slows the moving particles, so they carry less and do not travel as far. Slider from 0 to 0.5. |
| Transport Rate | Number | 4 | How much material the water moves along. Higher carries it further before it is laid down. Slider from 0 to 16. |
| Deposition Multiplier | Number | 1 | How fast carried sediment is laid back down. 0 lays nothing down on the way. Slider from 0 to 3. |
| Downcutting | Number | 0.5 | Deepens the channels the earlier waves ran down, so the main gullies cut deeper. Slider from 0 to 1. |
| Shape Protection | Number | 0 | Resistance to erosion. Higher keeps more of the original terrain; 1 erodes nothing. Slider from 0 to 1. |
| Sediment Loss | Number | 0 | Takes part of the carried sediment away instead of laying all of it down. Higher leaves fewer deposits. Slider from 0 to 1. |
| Sediment Smoothing | Number | 0.25 | Smooths the deposits, so there are fewer lone specks and spikes. Slider from 0 to 1. |
| Flow Rotation [deg] | Number | 0 | Turns the water away from straight downhill, so the gullies run slanted across the slopes. Slider from -180 to 180. |
| Random Rotation [deg] | Number | 10 | Turns each rain wave by a new random angle up to this, so the passes do not all line up. Slider from 0 to 180. |
| Wind Strength | Number | 0 | How strongly the water is pushed towards Bias Direction. Slider from 0 to 1. |
| Bias Direction [deg] | Number | 0 | Where the water is pushed: 0 is north (+Z), 90 is east (+X). Slider from 0 to 360. |
| Seed | Whole number | 0 | Change it to get a different random result. |
| Strength | Number | 1 | How much of the change is kept. 1 keeps all of it, 0 gives back the input. Slider from 0 to 1. |
| White at [m] | Number | 5 | Metres of change that make Erosion, Deposition and Sediment fully white. Smaller shows subtle changes. Slider from 0.1 to 100. |
Outputs
| Output | Kind |
|---|---|
| Terrain | Map. The terrain after the simulation. |
| Erosion | Map. Where ground was carried away: 1 where at least White at metres went. |
| Deposition | Map. Where material was left: 1 where at least White at metres piled up. |
| Simulated Flow | Map. Where the water ran, from 0 (none) to 1 (a big stream). |
| Sediment | Map. Loose material the water left that was not carried off again: 1 at White at metres. |
Hydraulic Erosion
Pipe-model water erosion (rivers, gullies).
Inputs
| Input | Kind | Default | Notes |
|---|---|---|---|
| In | Map, any width | The value this node works on. | |
| Mask | Map | Where the change is kept: white keeps it, black gives back the input. Not wired = everywhere. | |
| Strength | Number | 1 | How much of the change is kept. 1 keeps all of it, 0 gives back the input. Slider from 0 to 1. |
| Iterations | Whole number | 120 | How many steps the water runs for. More steps carve deeper channels but take longer. Slider from 1 to 400. |
| Time Step | Number | 0.02 | How much happens in each step. Bigger values work faster but can give noisy results. 0 does nothing. Slider from 0 to 0.2. |
| Rain | Number | 0.012 | Water added to every pixel in each step. More rain carves more ground. Slider from 0 to 1. |
| Evaporation | Number | 0.015 | How fast the water dries up. Higher values leave less water to carve. Slider from 0 to 0.5. |
| Sediment Capacity | Number | 1 | How much soil running water can carry. Higher values carve deeper channels. Slider from 0 to 4. |
| Erode Rate | Number | 0.3 | How fast the water picks up ground when it can carry more soil. Slider from 0 to 1. |
| Deposit Rate | Number | 0.3 | How fast the water drops the soil that it cannot carry. Slider from 0 to 1. |
| Min Tilt | Number | 0.01 | The lowest slope the water acts on, so it still erodes flat ground. Higher values erode flat areas more. Slider from 0 to 0.1. |
| Gravity | Number | 9.81 | How strongly water is pulled downhill. Higher values make it flow faster. Slider from 1 to 20. |
| Mask Depth | Number | 2 | Metres of change that count as a full Eroded or Deposited mask. Slider from 0.1 to 50. |
Outputs
| Output | Kind |
|---|---|
| Out | Map, any width. The result this node produces. |
| Eroded | Map. 1 where erosion removed at least Mask Depth metres of ground. Good for rock splats. |
| Deposited | Map. 1 where erosion left at least Mask Depth metres of sediment. Good for gravel and dirt splats. |
Sediment
Loose material slides down to its angle of repose and settles in hollows.
Inputs
| Input | Kind | Default | Notes |
|---|---|---|---|
| Terrain | Map | The terrain the simulation runs on. | |
| Supply | Map | Where loose material lies to begin with: white is Supply Depth metres, black none. Not wired = everywhere. | |
| Sliding Rate | Number | 0.5 | How fast the material slides downhill. 0 stops sliding. Slider from 0 to 1. |
| Supply Depth [m] | Number | 2 | How thick the loose material starts, times the Supply mask. The bedrock is never removed. Slider from 0 to 50. |
| Settling Time [s] | Number | 10 | How long the material has to slide down into rills and hollows. Longer takes longer to work out. Slider from 0 to 120. |
| Supply Scale [m] | Number | 50 | How big the patches of loose material are, in metres, whatever the cell size. Slider from 1 to 2000. Shows only with some settings. |
| Repose Angle | Number | 33 | The steepest slope in degrees that loose material rests on. Lower lets deposits spread further. Slider from 5 to 60. |
| Surface Relaxation | Number | 0.2 | Evens out the loose surface a little over short distances, keeping all the material. Does not smooth the bedrock. Slider from 0 to 1. |
| Supply Variation | Number | 0 | How much the starting material varies from patch to patch. 0 lays an even layer inside the Supply mask. Slider from 0 to 1. |
| Seed | Whole number | 0 | Change it to get a different random result. Shows only with some settings. |
| Simulation Cells | Whole number | 1024 | How many cells across the simulation runs on. More resolves finer features and is slower. The detail it misses is added back. Slider from 128 to 2048. |
Outputs
| Output | Kind |
|---|---|
| Terrain | Map. The terrain after the simulation. |
| Sand Coverage | Map. How thick the loose material lies once it has settled: 1 at Supply Depth or more. |
| Deposition | Map. Where material piled up beyond what lay there at the start: 1 at Supply Depth more. |
| Redistribution | Map. How much material slid over each point on its way down: 1 at Supply Depth. |
Thermal Erosion
Slumps steep slopes toward a talus angle.
Inputs
| Input | Kind | Default | Notes |
|---|---|---|---|
| In | Map, any width | The value this node works on. | |
| Iterations | Whole number | 60 | How many times loose ground slides. More passes flatten slopes further but take longer. A finer map runs more passes, so it looks the same. Slider from 1 to 400. |
| Talus | Number | 0.002 | The steepest slope that stays put, as the height step over 2 metres, 0 to 1 of the terrain height. Lower flattens more. Slider from 0 to 0.1. |
| Strength | Number | 0.5 | How much of the extra ground slides in each pass. 0 does nothing, 1 is the fastest. Slider from 0 to 1. |
| Mask Depth | Number | 2 | Metres of change that count as a full Eroded or Deposited mask. Slider from 0.1 to 50. |
Outputs
| Output | Kind |
|---|---|
| Out | Map, any width. The result this node produces. |
| Eroded | Map. 1 where erosion removed at least Mask Depth metres of ground. Good for rock splats. |
| Deposited | Map. 1 where erosion left at least Mask Depth metres of sediment. Good for gravel and dirt splats. |
Wide Flows
Particle erosion over several levels: broad flows and valleys with finer channels inside.
Inputs
| Input | Kind | Default | Notes |
|---|---|---|---|
| Terrain | Map | The terrain the simulation runs on. | |
| Mask | Map | Where the change is kept: white keeps it, black gives back the input. Not wired = everywhere. | |
| Rainfall Mask | Map | Where rain falls: white is full rain, black none (by Rain Mask Influence). Not wired = everywhere. | |
| Erosion Mask | Map | Where the water can wear the ground away: white erodes fully, black protects (by Erosion Mask Influence). Not wired = everywhere. | |
| Rain by Level 1 | Number | 1 | Rain multiplier for level 1, the coarsest (64 cells across). Broad flows. Slider from 0 to 4. |
| Rain by Level 2 | Number | 1 | Rain multiplier for level 2 (128 cells across). Slider from 0 to 4. |
| Rain by Level 3 | Number | 1 | Rain multiplier for level 3 (256 cells across). Slider from 0 to 4. |
| Rain by Level 4 | Number | 1 | Rain multiplier for level 4 (512 cells across). Slider from 0 to 4. |
| Rain by Level 5 | Number | 1 | Rain multiplier for level 5 (1024 cells across). Slider from 0 to 4. Shows only with some settings. |
| Rain by Level 6 | Number | 1 | Rain multiplier for level 6, the finest (2048 cells across). Slider from 0 to 4. Shows only with some settings. |
| Level Steps 1 | Number | 1 | How much level 1 (64 cells, broad forms) adds. 0 skips its erosion. Slider from 0 to 2. |
| Level Steps 2 | Number | 1 | How much level 2 (128 cells) adds. 0 skips its erosion. Slider from 0 to 2. |
| Level Steps 3 | Number | 1 | How much level 3 (256 cells) adds. 0 skips its erosion. Slider from 0 to 2. |
| Level Steps 4 | Number | 1 | How much level 4 (512 cells) adds. 0 skips its erosion. Slider from 0 to 2. |
| Level Steps 5 | Number | 1 | How much level 5 (1024 cells) adds. 0 skips its erosion. Slider from 0 to 2. Shows only with some settings. |
| Level Steps 6 | Number | 1 | How much level 6 (2048 cells, fine features) adds. 0 skips its erosion. Slider from 0 to 2. Shows only with some settings. |
| Seed | Whole number | 0 | Change it to get a different random result. |
| Simulation Cells | Whole number | 512 | How many cells across the simulation runs on. More resolves finer features and is slower. The detail it misses is added back. Slider from 128 to 2048. |
| Strength | Number | 1 | How much of the change is kept. 1 keeps all of it, 0 gives back the input. Slider from 0 to 1. |
| Deposition Multiplier | Number | 1 | Scales how fast carried material is laid down. Higher makes more of the deposits. Slider from 0 to 3. |
| Duration | Whole number | 8 | How long the erosion runs, in rain waves on every level. Longer develops the flows further and takes longer. Slider from 1 to 64. |
| Erosion Mask Influence | Number | 1 | How much the Erosion Mask counts. 0 ignores it. Slider from 0 to 1. |
| Erosion Multiplier | Number | 1 | Scales how much ground the flow takes away. 0 takes none; higher carves more. Slider from 0 to 3. |
| Evaporation | Number | 0.02 | How fast the water is lost. Faster evaporation keeps the flows short. Slider from 0.001 to 0.2. |
| Flow Rotation [deg] | Number | 0 | Turns the flow away from straight downhill. It changes where the water runs, not the terrain. Slider from -180 to 180. |
| Inertia | Number | 0.3 | How well the flow keeps its direction. Higher gives longer, more even channels; lower follows every bump. Slider from 0 to 0.95. |
| Initial Water | Number | 1 | How much water each particle starts with. More water carries more material. Slider from 0.1 to 4. |
| Mask Depth [m] | Number | 5 | Metres of change that make Erosion, Deposition and Sediment fully white. Does not change the terrain. Slider from 0.1 to 100. |
| Rain Density | Number | 1 | How much rain falls on every level. More rain keeps more flows going. Slider from 0 to 4. |
| Rain Mask Influence | Number | 1 | How much the Rainfall Mask counts. 0 ignores it. Slider from 0 to 1. |
| Random Rotation [deg] | Number | 10 | Turns each rain wave by a new random angle up to this, to break up paths that all line up. Slider from 0 to 180. |
| Sediment Loss | Number | 0 | How much carried material is lost on the way. Higher leaves less to lay down later. Slider from 0 to 1. |
| Transport Rate | Number | 4 | How much material the flow carries. Higher takes removed material further. Slider from 0 to 16. |
| Bias Direction [deg] | Number | 0 | Where the wind pushes the flow: 0 is north (+Z), 90 is east (+X). Slider from 0 to 360. |
| Wind Strength | Number | 0 | How strongly the wind pushes the flow towards Bias Direction, next to gravity. 0 is no wind. Slider from 0 to 1. |
Outputs
| Output | Kind |
|---|---|
| Terrain | Map. The terrain after the simulation. |
| Simulated Flow | Map. Where the water ran, from 0 (none) to 1 (a big stream). |
| Erosion | Map. Where ground was carried away: 1 where at least White at metres went. |
| Deposition | Map. Where material was left: 1 where at least White at metres piled up. |
| Sediment | Map. Loose material the water left that was not carried off again: 1 at White at metres. |