diff options
author | Stefan Werner <stefan.werner@intel.com> | 2022-03-31 15:19:14 +0300 |
---|---|---|
committer | Stefan Werner <stefan.werner@intel.com> | 2022-04-01 20:43:34 +0300 |
commit | 542c03fed5dad18331bb2c40cb883ff220120c13 (patch) | |
tree | ac3b295370be4f4577a6bc145016370329a3c7bf /intern | |
parent | 633c8fc3c81429ee9a91049091261e226983898f (diff) |
Cycles: Use single floating point precision sine/cosine in sky
Should be no functional changes.
Diffstat (limited to 'intern')
-rw-r--r-- | intern/cycles/kernel/svm/sky.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/kernel/svm/sky.h b/intern/cycles/kernel/svm/sky.h index c03d97b9858..a72d4dd3ba7 100644 --- a/intern/cycles/kernel/svm/sky.h +++ b/intern/cycles/kernel/svm/sky.h @@ -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, |