Merge pull request #350 from evolvedexperiment/master

Fix for whole world globe
This commit is contained in:
Azgaar 2019-11-01 16:39:15 +03:00 committed by GitHub
commit 7a06e0bdd4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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};
})));
})));