mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-19 02:21:24 +01:00
refactor: render covering layers fix
This commit is contained in:
parent
8abf443f70
commit
5361565cd7
5 changed files with 34 additions and 21 deletions
|
|
@ -26,8 +26,6 @@ import {createGrid} from "./grid/grid";
|
|||
import {createPack} from "./pack/pack";
|
||||
import {getInputValue, setInputValue} from "utils/nodeUtils";
|
||||
import {calculateMapCoordinates} from "modules/coordinates";
|
||||
import {drawPoint, drawPolygons} from "utils/debugUtils";
|
||||
import {isReligion} from "utils/typeUtils";
|
||||
|
||||
const {Zoom, ThreeD} = window;
|
||||
|
||||
|
|
@ -74,13 +72,6 @@ async function generate(options?: IGenerationOptions) {
|
|||
// renderLayer("states");
|
||||
renderLayer("religions");
|
||||
|
||||
// drawPolygons(pack.cells.religion, pack.cells.v, pack.vertices.p, {fillOpacity: 0.8, excludeZeroes: true});
|
||||
pack.religions.filter(isReligion).forEach(({center}) =>
|
||||
drawPoint(pack.cells.p[center], {
|
||||
radius: 5
|
||||
})
|
||||
);
|
||||
|
||||
WARN && console.warn(`TOTAL: ${rn((performance.now() - timeStart) / 1000, 2)}s`);
|
||||
// showStatistics();
|
||||
INFO && console.groupEnd();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue