Skip to content

Commit 870336f

Browse files
ruofeidutoji
authored andcommitted
Fixed the image, the code actually assume left/right, note that chess-pano-4k180 may also be wrong. Now chess-pano-4k.png and chess-pano-4k180.jpg aligns.
1 parent 87cdfa7 commit 870336f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

js/render/nodes/skybox.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export class SkyboxNode extends Node {
9797
let lonSegments = 40;
9898

9999
// Create the vertices/indices
100-
for (let i=0; i <= latSegments; ++i) {
100+
for (let i = 0; i <= latSegments; ++i) {
101101
let theta = i * Math.PI / latSegments;
102102
let sinTheta = Math.sin(theta);
103103
let cosTheta = Math.cos(theta);
@@ -147,8 +147,8 @@ export class SkyboxNode extends Node {
147147
1.0, 1.0, 0.0, 0.0];
148148
break;
149149
case 'stereoTopBottom':
150-
material.texCoordScaleOffset.value = [1.0, 0.5, 0.0, 0.5,
151-
1.0, 0.5, 0.0, 0.0];
150+
material.texCoordScaleOffset.value = [1.0, 0.5, 0.0, 0.0,
151+
1.0, 0.5, 0.0, 0.5];
152152
break;
153153
case 'stereoLeftRight':
154154
material.texCoordScaleOffset.value = [0.5, 1.0, 0.0, 0.0,

media/textures/chess-pano-4k.png

-3.68 MB
Loading

0 commit comments

Comments
 (0)