mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 17:51:24 +01:00
refactor: draw state labels - raycasting approach
This commit is contained in:
parent
e07bf91cd7
commit
6954888ab2
6 changed files with 123 additions and 155 deletions
|
|
@ -67,8 +67,8 @@ async function generate(options?: IGenerationOptions) {
|
|||
// renderLayer("heightmap");
|
||||
// renderLayer("rivers");
|
||||
// renderLayer("biomes");
|
||||
renderLayer("burgs");
|
||||
renderLayer("routes");
|
||||
// renderLayer("burgs");
|
||||
// renderLayer("routes");
|
||||
renderLayer("states");
|
||||
renderLayer("labels");
|
||||
|
||||
|
|
|
|||
|
|
@ -15,7 +15,6 @@ export function getPolesOfInaccessibility(props: IGetPolesProps) {
|
|||
TIME && console.time("getPolesOfInaccessibility");
|
||||
const multiPolygons = getMultiPolygons(props);
|
||||
const sortByLength = (a: unknown[], b: unknown[]) => b.length - a.length;
|
||||
console.log(multiPolygons);
|
||||
|
||||
const poles: Dict<TPoint> = Object.fromEntries(
|
||||
Object.entries(multiPolygons).map(([id, multiPolygon]) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue