mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-23 12:31:24 +01:00
update height model and scale parameters
This commit is contained in:
parent
d6d292f5bd
commit
5084e831f9
3 changed files with 4 additions and 3 deletions
|
|
@ -31,9 +31,10 @@ window.Rivers = (function () {
|
|||
TIME && console.timeEnd("generateRivers");
|
||||
|
||||
function drainWater() {
|
||||
const sqrpixel = distanceScale * distanceScale
|
||||
const MIN_FLUX_TO_FORM_RIVER = 10 * distanceScale;
|
||||
const prec = grid.cells.prec;
|
||||
const area = c => pack.cells.area[c] * distanceScale * distanceScale;
|
||||
const area = c => pack.cells.area[c] * sqrpixel;
|
||||
const land = cells.i.filter(i => h[i] >= 20).sort((a, b) => h[b] - h[a]);
|
||||
const lakeOutCells = Lakes.setClimateData(h);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue