diff --git a/panorama-viewer.js b/panorama-viewer.js index 2c676a9..4212940 100644 --- a/panorama-viewer.js +++ b/panorama-viewer.js @@ -20,7 +20,7 @@ for (let p = 0; p < parallels; p++) { const y = -radius + p * 2 * radius / parallels; for (let m = 0; m < meridians; m++) { - const θ = 2 * Math.PI / meridians; + const θ = m * 2 * Math.PI / meridians; const x = Math.sin(θ) * radius; const z = Math.cos(θ) * radius;