Skip to main content

Erosion

RustEdit Pro

The 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

InputKindDefaultNotes
TerrainMapThe terrain the simulation runs on.
MaskMapWhere the change is kept: white keeps it, black gives back the input. Not wired = everywhere.
Rainfall MaskMapWhere it rains: white is full rain, black none. Unwired, it rains everywhere.
HardnessMapHard ground (white) resists the streams and keeps its shape.
RockMapBare rock (white): it cuts more slowly and no loose material stays on it.
SeedWhole number42Change it to get a different random result.
DurationWhole number10How long it rains. Longer runs cut deeper valleys and take longer. Slider from 0 to 50.
Simulation CellsWhole number2048How 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]Number1000Size 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.
DowncuttingNumber0.4How deep the streams cut, on every scale. 0 keeps the terrain apart from the ageing. Slider from 0 to 1.
HierarchyNumber0.85How much streams that collect others cut deeper. 0: every stream cuts alike. 1: the main valleys stand out. Slider from 0 to 1.
MeanderingNumber0.6How much the streams wander on their way down. 0 runs them straight down the slope. Slider from 0 to 1.
DetailNumber0.6How 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 ValleysOn or offOffThe large valleys cut deeper and keep steeper walls.
Fill Angle [deg]Number8Streams lay what they cannot carry where their course runs flatter than this angle, the more the flatter. Slider from 0 to 60.
Fill ShareNumber0.9How much of that load a stream lays down. High values give smooth channel floors and soft fans. Slider from 0 to 1.
Long FansOn or offOffStreams carry their load further before they lay it down, so fans reach further out.
SettlingOn or offOffLoose deposits steeper than the Deposit Angle slide down.
Deposit Angle [deg]Number30With Settling: the steepest slope loose deposits keep. Slider from 1 to 60. Shows only with some settings.
AgeingNumber0.2How 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]Number0Soil 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]Number10Ground well steeper than this angle ages faster. Slider from 1 to 60.
StrengthNumber1How much of the change is kept. 1 keeps all of it, 0 gives back the input. Slider from 0 to 1.
White at [m]Number10Metres of change that make Erosion, Deposition and Sediment fully white. Slider from 0.1 to 100.

Outputs

OutputKind
TerrainMap. The terrain after the simulation.
Simulated FlowMap. Where the water ran, from 0 (none) to 1 (a big stream).
ErosionMap. Where ground was carried away: 1 where at least White at metres went.
DepositionMap. Where material was left: 1 where at least White at metres piled up.
SedimentMap. 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

InputKindDefaultNotes
HeightMap
DetailChoiceLowHow finely the water is followed. Higher is slower. Options: Low, Medium, High.
ThresholdNumber0.6Flow above this counts as a river. Slider from 0 to 1.
SoftnessNumber0.05How gradually the river mask fades in around the threshold. Slider from 0 to 0.5.

Outputs

OutputKind
FlowMap. How much water passes each point, from 0 (none) to 1 (a big river).
RiversMap. 1 where the flow is above Threshold.

Fluvial Particles​

Water particle erosion: rain runs downhill, carving gullies and leaving sediment.

Inputs

InputKindDefaultNotes
TerrainMapThe terrain the simulation runs on.
MaskMapWhere the change is kept: white keeps it, black gives back the input. Not wired = everywhere.
PresetChoiceCustomLoads a complete set of erosion settings. Custom uses the settings below. Options: Custom, Subtle, Moderate, Intense, Gullies.
Simulation CellsWhole number1024How 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 StrengthNumber2How many water particles fall in each wave. More rain carves more. Slider from 0 to 4.
Rain WavesWhole number24How 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 WaterNumber1How much water each particle starts with. Particles with more water carry more sediment. Slider from 0.1 to 4.
FrictionNumber0.02Slows the moving particles, so they carry less and do not travel as far. Slider from 0 to 0.5.
Transport RateNumber4How much material the water moves along. Higher carries it further before it is laid down. Slider from 0 to 16.
Deposition MultiplierNumber1How fast carried sediment is laid back down. 0 lays nothing down on the way. Slider from 0 to 3.
DowncuttingNumber0.5Deepens the channels the earlier waves ran down, so the main gullies cut deeper. Slider from 0 to 1.
Shape ProtectionNumber0Resistance to erosion. Higher keeps more of the original terrain; 1 erodes nothing. Slider from 0 to 1.
Sediment LossNumber0Takes part of the carried sediment away instead of laying all of it down. Higher leaves fewer deposits. Slider from 0 to 1.
Sediment SmoothingNumber0.25Smooths the deposits, so there are fewer lone specks and spikes. Slider from 0 to 1.
Flow Rotation [deg]Number0Turns the water away from straight downhill, so the gullies run slanted across the slopes. Slider from -180 to 180.
Random Rotation [deg]Number10Turns 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 StrengthNumber0How strongly the water is pushed towards Bias Direction. Slider from 0 to 1.
Bias Direction [deg]Number0Where the water is pushed: 0 is north (+Z), 90 is east (+X). Slider from 0 to 360.
SeedWhole number0Change it to get a different random result.
StrengthNumber1How much of the change is kept. 1 keeps all of it, 0 gives back the input. Slider from 0 to 1.
White at [m]Number5Metres of change that make Erosion, Deposition and Sediment fully white. Smaller shows subtle changes. Slider from 0.1 to 100.

Outputs

OutputKind
TerrainMap. The terrain after the simulation.
ErosionMap. Where ground was carried away: 1 where at least White at metres went.
DepositionMap. Where material was left: 1 where at least White at metres piled up.
Simulated FlowMap. Where the water ran, from 0 (none) to 1 (a big stream).
SedimentMap. 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

InputKindDefaultNotes
InMap, any widthThe value this node works on.
MaskMapWhere the change is kept: white keeps it, black gives back the input. Not wired = everywhere.
StrengthNumber1How much of the change is kept. 1 keeps all of it, 0 gives back the input. Slider from 0 to 1.
IterationsWhole number120How many steps the water runs for. More steps carve deeper channels but take longer. Slider from 1 to 400.
Time StepNumber0.02How much happens in each step. Bigger values work faster but can give noisy results. 0 does nothing. Slider from 0 to 0.2.
RainNumber0.012Water added to every pixel in each step. More rain carves more ground. Slider from 0 to 1.
EvaporationNumber0.015How fast the water dries up. Higher values leave less water to carve. Slider from 0 to 0.5.
Sediment CapacityNumber1How much soil running water can carry. Higher values carve deeper channels. Slider from 0 to 4.
Erode RateNumber0.3How fast the water picks up ground when it can carry more soil. Slider from 0 to 1.
Deposit RateNumber0.3How fast the water drops the soil that it cannot carry. Slider from 0 to 1.
Min TiltNumber0.01The lowest slope the water acts on, so it still erodes flat ground. Higher values erode flat areas more. Slider from 0 to 0.1.
GravityNumber9.81How strongly water is pulled downhill. Higher values make it flow faster. Slider from 1 to 20.
Mask DepthNumber2Metres of change that count as a full Eroded or Deposited mask. Slider from 0.1 to 50.

Outputs

OutputKind
OutMap, any width. The result this node produces.
ErodedMap. 1 where erosion removed at least Mask Depth metres of ground. Good for rock splats.
DepositedMap. 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

InputKindDefaultNotes
TerrainMapThe terrain the simulation runs on.
SupplyMapWhere loose material lies to begin with: white is Supply Depth metres, black none. Not wired = everywhere.
Sliding RateNumber0.5How fast the material slides downhill. 0 stops sliding. Slider from 0 to 1.
Supply Depth [m]Number2How thick the loose material starts, times the Supply mask. The bedrock is never removed. Slider from 0 to 50.
Settling Time [s]Number10How 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]Number50How big the patches of loose material are, in metres, whatever the cell size. Slider from 1 to 2000. Shows only with some settings.
Repose AngleNumber33The steepest slope in degrees that loose material rests on. Lower lets deposits spread further. Slider from 5 to 60.
Surface RelaxationNumber0.2Evens out the loose surface a little over short distances, keeping all the material. Does not smooth the bedrock. Slider from 0 to 1.
Supply VariationNumber0How much the starting material varies from patch to patch. 0 lays an even layer inside the Supply mask. Slider from 0 to 1.
SeedWhole number0Change it to get a different random result. Shows only with some settings.
Simulation CellsWhole number1024How 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

OutputKind
TerrainMap. The terrain after the simulation.
Sand CoverageMap. How thick the loose material lies once it has settled: 1 at Supply Depth or more.
DepositionMap. Where material piled up beyond what lay there at the start: 1 at Supply Depth more.
RedistributionMap. 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

InputKindDefaultNotes
InMap, any widthThe value this node works on.
IterationsWhole number60How 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.
TalusNumber0.002The 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.
StrengthNumber0.5How much of the extra ground slides in each pass. 0 does nothing, 1 is the fastest. Slider from 0 to 1.
Mask DepthNumber2Metres of change that count as a full Eroded or Deposited mask. Slider from 0.1 to 50.

Outputs

OutputKind
OutMap, any width. The result this node produces.
ErodedMap. 1 where erosion removed at least Mask Depth metres of ground. Good for rock splats.
DepositedMap. 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

InputKindDefaultNotes
TerrainMapThe terrain the simulation runs on.
MaskMapWhere the change is kept: white keeps it, black gives back the input. Not wired = everywhere.
Rainfall MaskMapWhere rain falls: white is full rain, black none (by Rain Mask Influence). Not wired = everywhere.
Erosion MaskMapWhere the water can wear the ground away: white erodes fully, black protects (by Erosion Mask Influence). Not wired = everywhere.
Rain by Level 1Number1Rain multiplier for level 1, the coarsest (64 cells across). Broad flows. Slider from 0 to 4.
Rain by Level 2Number1Rain multiplier for level 2 (128 cells across). Slider from 0 to 4.
Rain by Level 3Number1Rain multiplier for level 3 (256 cells across). Slider from 0 to 4.
Rain by Level 4Number1Rain multiplier for level 4 (512 cells across). Slider from 0 to 4.
Rain by Level 5Number1Rain multiplier for level 5 (1024 cells across). Slider from 0 to 4. Shows only with some settings.
Rain by Level 6Number1Rain multiplier for level 6, the finest (2048 cells across). Slider from 0 to 4. Shows only with some settings.
Level Steps 1Number1How much level 1 (64 cells, broad forms) adds. 0 skips its erosion. Slider from 0 to 2.
Level Steps 2Number1How much level 2 (128 cells) adds. 0 skips its erosion. Slider from 0 to 2.
Level Steps 3Number1How much level 3 (256 cells) adds. 0 skips its erosion. Slider from 0 to 2.
Level Steps 4Number1How much level 4 (512 cells) adds. 0 skips its erosion. Slider from 0 to 2.
Level Steps 5Number1How much level 5 (1024 cells) adds. 0 skips its erosion. Slider from 0 to 2. Shows only with some settings.
Level Steps 6Number1How much level 6 (2048 cells, fine features) adds. 0 skips its erosion. Slider from 0 to 2. Shows only with some settings.
SeedWhole number0Change it to get a different random result.
Simulation CellsWhole number512How 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.
StrengthNumber1How much of the change is kept. 1 keeps all of it, 0 gives back the input. Slider from 0 to 1.
Deposition MultiplierNumber1Scales how fast carried material is laid down. Higher makes more of the deposits. Slider from 0 to 3.
DurationWhole number8How 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 InfluenceNumber1How much the Erosion Mask counts. 0 ignores it. Slider from 0 to 1.
Erosion MultiplierNumber1Scales how much ground the flow takes away. 0 takes none; higher carves more. Slider from 0 to 3.
EvaporationNumber0.02How fast the water is lost. Faster evaporation keeps the flows short. Slider from 0.001 to 0.2.
Flow Rotation [deg]Number0Turns the flow away from straight downhill. It changes where the water runs, not the terrain. Slider from -180 to 180.
InertiaNumber0.3How well the flow keeps its direction. Higher gives longer, more even channels; lower follows every bump. Slider from 0 to 0.95.
Initial WaterNumber1How much water each particle starts with. More water carries more material. Slider from 0.1 to 4.
Mask Depth [m]Number5Metres of change that make Erosion, Deposition and Sediment fully white. Does not change the terrain. Slider from 0.1 to 100.
Rain DensityNumber1How much rain falls on every level. More rain keeps more flows going. Slider from 0 to 4.
Rain Mask InfluenceNumber1How much the Rainfall Mask counts. 0 ignores it. Slider from 0 to 1.
Random Rotation [deg]Number10Turns 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 LossNumber0How much carried material is lost on the way. Higher leaves less to lay down later. Slider from 0 to 1.
Transport RateNumber4How much material the flow carries. Higher takes removed material further. Slider from 0 to 16.
Bias Direction [deg]Number0Where the wind pushes the flow: 0 is north (+Z), 90 is east (+X). Slider from 0 to 360.
Wind StrengthNumber0How strongly the wind pushes the flow towards Bias Direction, next to gravity. 0 is no wind. Slider from 0 to 1.

Outputs

OutputKind
TerrainMap. The terrain after the simulation.
Simulated FlowMap. Where the water ran, from 0 (none) to 1 (a big stream).
ErosionMap. Where ground was carried away: 1 where at least White at metres went.
DepositionMap. Where material was left: 1 where at least White at metres piled up.
SedimentMap. Loose material the water left that was not carried off again: 1 at White at metres.