Skip to content

Commit e89a94f

Browse files
committed
sphere frag revert
1 parent 3908190 commit e89a94f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/components/textures/shaders/sphereFrag.glsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ uniform float nanAlpha;
2626
vec2 giveUV(vec3 position){
2727
vec3 n = normalize(position);
2828
float latitude = asin(n.y);
29-
float longitude = -atan(n.z, n.x);
29+
float longitude = atan(n.z, n.x);
3030

3131
latitude = (latitude - latBounds.x)/(latBounds.y - latBounds.x);
3232
longitude = (longitude - lonBounds.x)/(lonBounds.y - lonBounds.x);

src/components/textures/shaders/sphereVertex.glsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ uniform float animateProg;
1212
vec2 giveUV(vec3 position){
1313
vec3 n = normalize(position);
1414
float latitude = asin(n.y);
15-
float longitude = -atan(n.z, n.x);
15+
float longitude = atan(n.z, n.x);
1616
latitude = (latitude - latBounds.x)/(latBounds.y - latBounds.x);
1717
longitude = (longitude - lonBounds.x)/(lonBounds.y - lonBounds.x);
1818

src/components/textures/shaders/sphereVertexFlat.glsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ uniform vec2 lonBounds;
1111
vec2 giveUV(vec3 position){
1212
vec3 n = normalize(position);
1313
float latitude = asin(n.y);
14-
float longitude = -atan(n.z, n.x);
14+
float longitude = atan(n.z, n.x);
1515
latitude = (latitude - latBounds.x)/(latBounds.y - latBounds.x);
1616
longitude = (longitude - lonBounds.x)/(lonBounds.y - lonBounds.x);
1717

0 commit comments

Comments
 (0)