Skip to main content

Module rivers

Module rivers 

Source
Expand description

River generation — water flow simulation from rainfall to ocean.

Traces downhill flow from every cell, accumulates flow volume, and marks cells exceeding a threshold as river segments.

Structs§

RiverNetwork
Complete river network.
RiverSegment
A river segment.

Functions§

generate
Generate river network from heightmap and precipitation.