mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 17:51:24 +01:00
refactor: heightmap config
This commit is contained in:
parent
6b2de4d20e
commit
d18636eb8f
9 changed files with 214 additions and 121 deletions
|
|
@ -125,11 +125,14 @@ async function updateGrid(precreatedGraph?: IGrid) {
|
|||
updatedGrid.cells.t = distanceField;
|
||||
updatedGrid.features = features;
|
||||
|
||||
const touchesEdges = features.some(feature => feature && feature.land && feature.border);
|
||||
defineMapSize(touchesEdges);
|
||||
|
||||
Lakes.addLakesInDeepDepressions(updatedGrid);
|
||||
Lakes.openNearSeaLakes(updatedGrid);
|
||||
|
||||
OceanLayers();
|
||||
defineMapSize();
|
||||
OceanLayers(updatedGrid);
|
||||
|
||||
window.mapCoordinates = calculateMapCoordinates();
|
||||
calculateTemperatures();
|
||||
generatePrecipitation();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue