Fixed warnings.
This commit is contained in:
parent
99415e419b
commit
6aa4f64e5c
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user