We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 73a1391 + 317be99 commit f387d5bCopy full SHA for f387d5b
src/components/textures/shaders/sphereBlocksVert.glsl
@@ -77,7 +77,7 @@ void main() {
77
vec2 lonlat = giveLonLat(instanceUV);
78
vec3 spherePosition = givePosition(lonlat);
79
float latitudeFactor = cos(lonlat.y); // Maps -1..1 to proper latitude
80
- float widthFactor = abs(lonBounds.y-lonBounds.x)/PI;
+ float widthFactor = abs(lonBounds.y-lonBounds.x)/(2.0*PI);
81
float heightFactor = (dispStrength - displaceZero) * displacement;
82
vec3 scaledPosition = position;
83
scaledPosition.x *= latitudeFactor * widthFactor;
0 commit comments