File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
src/components/textures/shaders Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ uniform float nanAlpha;
2626vec2 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);
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ uniform float animateProg;
1212vec2 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
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ uniform vec2 lonBounds;
1111vec2 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
You can’t perform that action at this time.
0 commit comments