update height model and scale parameters

This commit is contained in:
Mészáros Gergely 2021-09-05 14:57:10 +02:00
parent d6d292f5bd
commit 5084e831f9
3 changed files with 4 additions and 3 deletions

View file

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