mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-22 20:11:24 +01:00
heightmap selection - refactor, make generation immutable to get predictable result
This commit is contained in:
parent
8ea89111fc
commit
b6a1012753
4 changed files with 18 additions and 4 deletions
|
|
@ -510,7 +510,6 @@ window.HeightmapGenerator = (function () {
|
|||
const powered = lightness < 0.2 ? lightness : 0.2 + (lightness - 0.2) ** 0.8;
|
||||
heights[i] = minmax(Math.floor(powered * 100), 0, 100);
|
||||
}
|
||||
return heights;
|
||||
}
|
||||
|
||||
return {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue