From 1584297e8ecebc5edf213b051ff8482bba6f9ded Mon Sep 17 00:00:00 2001 From: Brandon Dyck Date: Sun, 23 Oct 2022 12:38:51 -0600 Subject: [PATCH] Fix cylinder vertex positions --- panorama-viewer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;