mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
fix added river basin selection
This commit is contained in:
parent
dbcf46f83b
commit
424980f5be
3 changed files with 10 additions and 10 deletions
|
|
@ -1457,7 +1457,7 @@ function drawRivers() {
|
|||
const {addMeandering, getRiverPath} = Rivers;
|
||||
lineGen.curve(d3.curveCatmullRom.alpha(0.1));
|
||||
const riverPaths = pack.rivers.map(river => {
|
||||
const riverMeandered = addMeandering(river.cells, 0.5, river.points);
|
||||
const riverMeandered = addMeandering(river.cells, river.points);
|
||||
const widthFactor = river.widthFactor || 1;
|
||||
const startingWidth = river.startingWidth || 0;
|
||||
const path = getRiverPath(riverMeandered, widthFactor, startingWidth);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue