Skip to content

Commit 2441b75

Browse files
committed
fix sphere
1 parent 6e2c504 commit 2441b75

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/textures/shaders/sphereBlocksVert.glsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ uniform float animateProg;
1515

1616
vec3 givePosition(vec2 uv) {
1717
// Reverse the normalization using the bounds
18-
float longitude = -((1.0 - uv.x) * (lonBounds.y - lonBounds.x) + lonBounds.x);
18+
float longitude = ((1.0 - uv.x) * (lonBounds.y - lonBounds.x) + lonBounds.x);
1919
float latitude = uv.y * (latBounds.y - latBounds.x) + latBounds.x;
2020

2121
// Convert to Cartesian coordinates

src/components/textures/shaders/sphereBlocksVertFlat.glsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ uniform float animateProg;
1515

1616
vec3 givePosition(vec2 uv) {
1717
// Reverse the normalization using the bounds
18-
float longitude = -((1.0 - uv.x) * (lonBounds.y - lonBounds.x) + lonBounds.x);
18+
float longitude = ((1.0 - uv.x) * (lonBounds.y - lonBounds.x) + lonBounds.x);
1919
float latitude = uv.y * (latBounds.y - latBounds.x) + latBounds.x;
2020

2121
// Convert to Cartesian coordinates

0 commit comments

Comments
 (0)