mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 18:45:54 -05:00
Cleanup
This commit is contained in:
parent
7652b05cc5
commit
8351d6dce2
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue