Fixed build.

This commit is contained in:
Branimir Karadžić
2017-02-14 20:27:31 -08:00
parent 3a43edcf30
commit 0838dad5ab
13 changed files with 98 additions and 98 deletions

View File

@@ -162,8 +162,8 @@ struct Camera
static inline void latLongFromVec(float& _u, float& _v, const float _vec[3])
{
const float phi = atan2f(_vec[0], _vec[2]);
const float theta = acosf(_vec[1]);
const float phi = bx::fatan2(_vec[0], _vec[2]);
const float theta = bx::facos(_vec[1]);
_u = (bx::pi + phi)*bx::invPi*0.5f;
_v = theta*bx::invPi;