mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
Merge pull request #350 from evolvedexperiment/master
Fix for whole world globe
This commit is contained in:
commit
7a06e0bdd4
1 changed files with 2 additions and 2 deletions
|
|
@ -260,7 +260,7 @@ async function updateGlobeTexure(addMesh) {
|
||||||
const mapHeight = rn(mapCoordinates.latT / 180 * height);
|
const mapHeight = rn(mapCoordinates.latT / 180 * height);
|
||||||
const mapWidth = world ? mapHeight * 2 : rn(graphWidth / graphHeight * mapHeight);
|
const mapWidth = world ? mapHeight * 2 : rn(graphWidth / graphHeight * mapHeight);
|
||||||
const dy = world ? 0 : (90 - mapCoordinates.latN) / 180 * height;
|
const dy = world ? 0 : (90 - mapCoordinates.latN) / 180 * height;
|
||||||
const dx = mapWidth / 4;
|
const dx = world ? 0 : mapWidth / 4;
|
||||||
|
|
||||||
// draw map on canvas
|
// draw map on canvas
|
||||||
const ctx = document.createElement("canvas").getContext("2d");
|
const ctx = document.createElement("canvas").getContext("2d");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue