Skip to content

Commit

Permalink
Fixed the image, the code actually assume left/right, note that chess…
Browse files Browse the repository at this point in the history
…-pano-4k180 may also be wrong. Now chess-pano-4k.png and chess-pano-4k180.jpg aligns.
  • Loading branch information
ruofeidu authored and toji committed Mar 7, 2025
1 parent 87cdfa7 commit 870336f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/render/nodes/skybox.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export class SkyboxNode extends Node {
let lonSegments = 40;

// Create the vertices/indices
for (let i=0; i <= latSegments; ++i) {
for (let i = 0; i <= latSegments; ++i) {
let theta = i * Math.PI / latSegments;
let sinTheta = Math.sin(theta);
let cosTheta = Math.cos(theta);
Expand Down Expand Up @@ -147,8 +147,8 @@ export class SkyboxNode extends Node {
1.0, 1.0, 0.0, 0.0];
break;
case 'stereoTopBottom':
material.texCoordScaleOffset.value = [1.0, 0.5, 0.0, 0.5,
1.0, 0.5, 0.0, 0.0];
material.texCoordScaleOffset.value = [1.0, 0.5, 0.0, 0.0,
1.0, 0.5, 0.0, 0.5];
break;
case 'stereoLeftRight':
material.texCoordScaleOffset.value = [0.5, 1.0, 0.0, 0.0,
Expand Down
Binary file modified media/textures/chess-pano-4k.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 870336f

Please sign in to comment.