mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 01:41:22 +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 mapWidth = world ? mapHeight * 2 : rn(graphWidth / graphHeight * mapHeight);
|
||||
const dy = world ? 0 : (90 - mapCoordinates.latN) / 180 * height;
|
||||
const dx = mapWidth / 4;
|
||||
const dx = world ? 0 : mapWidth / 4;
|
||||
|
||||
// draw map on canvas
|
||||
const ctx = document.createElement("canvas").getContext("2d");
|
||||
|
|
@ -331,4 +331,4 @@ function OrbitControls(camera, domElement) {
|
|||
|
||||
return {create, redraw, update, stop, options, setScale, setLightness, setSun, setRotation, toggleSky, setResolution, setColors, saveScreenshot};
|
||||
|
||||
})));
|
||||
})));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue