Cycles: Use single floating point precision sine/cosine in sky

Should be no functional changes.
This commit is contained in:
Stefan Werner 2022-03-31 14:19:14 +02:00
parent 633c8fc3c8
commit 542c03fed5
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ ccl_device float3 sky_radiance_hosek(KernelGlobals kg,
/* Nishita improved sky model */
ccl_device float3 geographical_to_direction(float lat, float lon)
{
return make_float3(cos(lat) * cos(lon), cos(lat) * sin(lon), sin(lat));
return make_float3(cosf(lat) * cosf(lon), cosf(lat) * sinf(lon), sinf(lat));
}
ccl_device float3 sky_radiance_nishita(KernelGlobals kg,