mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-22 20:11:24 +01:00
Fix: States labels adapts to height scale
This commit is contained in:
parent
30ab1217a8
commit
58ad13cbfd
1 changed files with 4 additions and 0 deletions
|
|
@ -315,6 +315,10 @@ function createLabels() {
|
|||
const pos = pack.states[id].pole
|
||||
const [x, y, z] = get3dCoords(pos[0], pos[1])
|
||||
text_mesh.position.set(x, y + 25, z);
|
||||
text_mesh.base_x = pos[0];
|
||||
text_mesh.base_y = pos[1];
|
||||
text_mesh.base_height = 25;
|
||||
|
||||
textMeshs.push(text_mesh)
|
||||
scene.add(text_mesh);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue