code cleanup: quiet all warnings about double promotion (either by changing the type or explicitly casting).
This commit is contained in:
@@ -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 =
|
||||
|
Reference in New Issue
Block a user