mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 01:41:22 +01:00
Merge branch 'master' into alpha
This commit is contained in:
commit
305d355ad5
5 changed files with 168 additions and 1 deletions
1
main.js
1
main.js
|
|
@ -637,6 +637,7 @@ function calculateVoronoi(graph, points) {
|
|||
function markFeatures() {
|
||||
TIME && console.time("markFeatures");
|
||||
Math.random = aleaPRNG(seed); // restart Math.random() to get the same result on heightmap edit in Erase mode
|
||||
|
||||
const cells = grid.cells, heights = grid.cells.h;
|
||||
cells.f = new Uint16Array(cells.i.length); // cell feature number
|
||||
cells.t = new Int8Array(cells.i.length); // cell type: 1 = land coast; -1 = water near coast;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue