code cleanup: quiet all warnings about double promotion (either by changing the type or explicitly casting).

This commit is contained in:
Campbell Barton
2012-06-09 17:45:22 +00:00
parent 0fbb6bff27
commit 43361487ba
11 changed files with 28 additions and 28 deletions

View File

@@ -332,7 +332,7 @@ static void sky_texture_precompute(KernelSunSky *ksunsky, float3 dir, float turb
float T2 = T * T;
float chi = (4.0f / 9.0f - T / 120.0f) * (M_PI_F - 2.0f * theta);
ksunsky->zenith_Y = (4.0453f * T - 4.9710f) * tan(chi) - 0.2155f * T + 2.4192f;
ksunsky->zenith_Y = (4.0453f * T - 4.9710f) * tanf(chi) - 0.2155f * T + 2.4192f;
ksunsky->zenith_Y *= 0.06f;
ksunsky->zenith_x =