Vibe Coding Encyclopedia

Downhill river networks

After filling up the puddles on the height map, pass 1 of the rainwater to the lowest neighbor in each compartment, the stream will merge into the river, and the place where it fills will become a lake.

Category
Procedural map generation

Technical terms · Flow accumulation (D8 drainage) · Priority-flood depression filling · Min-heap (priority queue) · Lakes from filled depressions

Related techniques

Technique document (Korean)