refactor: heightmap config

This commit is contained in:
Azgaar 2022-07-11 00:16:18 +03:00
parent 6b2de4d20e
commit d18636eb8f
9 changed files with 214 additions and 121 deletions

View file

@ -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();