This commit is contained in:
Dario Manesku 2015-02-14 00:29:20 +01:00
parent 7652b05cc5
commit 8351d6dce2

View file

@ -18,7 +18,7 @@ vec3 vecFromLatLong(vec2 _uv)
float pi = 3.14159265; float pi = 3.14159265;
float twoPi = 2.0*pi; float twoPi = 2.0*pi;
float phi = _uv.x * twoPi; float phi = _uv.x * twoPi;
float theta = _uv.y *pi; float theta = _uv.y * pi;
vec3 result; vec3 result;
result.x = sin(theta)*cos(phi); result.x = sin(theta)*cos(phi);