mirror of
https://gitlab.com/gaelysam/mapgen_rivers.git
synced 2025-07-02 16:30:44 +02:00
Fixed lakes elevation
There were sometimes missing water patches near a lake's edge, when the neighbour catchment area was lower. This commit allows to divide a cell into several mini-catchment basins, to fill only a part of it with water.
This commit is contained in:
@ -185,7 +185,7 @@ local function make_polygons(minp, maxp)
|
||||
|
||||
local poly_dem = {dem[iA], dem[iB], dem[iC], dem[iD]}
|
||||
polygon.dem = poly_dem
|
||||
polygon.lake = math.min(lakes[iA], lakes[iB], lakes[iC], lakes[iD])
|
||||
polygon.lake = {lakes[iA], lakes[iB], lakes[iC], lakes[iD]}
|
||||
|
||||
-- Now, rivers.
|
||||
-- Load river flux values for the 4 corners
|
||||
|
Reference in New Issue
Block a user