Fixed warnings.

This commit is contained in:
Branimir Karadžić 2016-12-15 20:54:49 -08:00
parent 99415e419b
commit 6aa4f64e5c

View File

@ -668,10 +668,10 @@ public:
void updateLightDir()
{
float el = m_lightElevation * (bx::pi/180.0f);
float az = m_lightAzimuth * (bx::pi/180.0f);
m_lightDir[0] = cos(el)*cos(az);
m_lightDir[2] = cos(el)*sin(az);
m_lightDir[1] = sin(el);
float az = m_lightAzimuth * (bx::pi/180.0f);
m_lightDir[0] = bx::fcos(el)*bx::fcos(az);
m_lightDir[2] = bx::fcos(el)*bx::fsin(az);
m_lightDir[1] = bx::fsin(el);
m_lightDir[3] = 0.0f;
}