mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 17:51:24 +01:00
refactor: migrate heightmap editor
This commit is contained in:
parent
a97e7f44f6
commit
a15f60150f
26 changed files with 103 additions and 80 deletions
|
|
@ -1,9 +1,11 @@
|
|||
import * as d3 from "d3";
|
||||
|
||||
import {INFO} from "config/logging";
|
||||
import {findCell} from "utils/graphUtils";
|
||||
import {getMiddlePoint} from "utils/lineUtils";
|
||||
import {rn} from "utils/numberUtils";
|
||||
import {aleaPRNG} from "scripts/aleaPRNG";
|
||||
import {renderLayer} from "layers";
|
||||
|
||||
window.Submap = (function () {
|
||||
const isWater = (pack, id) => pack.cells.h[id] < 20;
|
||||
|
|
@ -210,7 +212,7 @@ window.Submap = (function () {
|
|||
|
||||
stage("Regenerating river network.");
|
||||
Rivers.generate();
|
||||
drawRivers();
|
||||
renderLayer("rivers");
|
||||
Lakes.defineGroup();
|
||||
|
||||
// biome calculation based on (resampled) grid.cells.temp and prec
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue