mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Fix: Cycles: Implicit conversion from double to float
Not sure why there is no warning Pull Request: https://projects.blender.org/blender/blender/pulls/160739
This commit is contained in:
parent
df382ffced
commit
c1319db56c
1 changed files with 1 additions and 1 deletions
|
|
@ -188,7 +188,7 @@ ccl_device_inline float fresnel_f82(const float cosi, const float F0, const floa
|
|||
const float s = saturatef(1.0f - cosi);
|
||||
const float s5 = sqr(sqr(s)) * s;
|
||||
const float F_schlick = mix(F0, 1.0f, s5);
|
||||
return clamp(F_schlick - B * cosi * s5 * s, 0.0f, 1.0);
|
||||
return clamp(F_schlick - B * cosi * s5 * s, 0.0f, 1.0f);
|
||||
}
|
||||
|
||||
/* Evaluates the Fresnel equations at a dielectric-conductor interface, calculating reflectances
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue