Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-05-03 01:22:14 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-05-03 01:31:46 +0400
commit8d16869d833ea2a2bd548c8f7b767dae582c78f2 (patch)
tree8b4dac3292c5cb5c1c37211150633e6968814bc9 /intern/cycles/kernel/closure
parent43d5e54a799b6823bca31bde17606c591b81d8be (diff)
Code cleanup: Add -Werror=float-conversion to Cycles
Diffstat (limited to 'intern/cycles/kernel/closure')
-rw-r--r--intern/cycles/kernel/closure/bsdf_hair.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/cycles/kernel/closure/bsdf_hair.h b/intern/cycles/kernel/closure/bsdf_hair.h
index 163e7cc5ee2..26e1198ffcf 100644
--- a/intern/cycles/kernel/closure/bsdf_hair.h
+++ b/intern/cycles/kernel/closure/bsdf_hair.h
@@ -99,7 +99,7 @@ ccl_device float3 bsdf_hair_reflection_eval_reflect(const ShaderClosure *sc, con
float theta_h = (theta_i + theta_r) * 0.5f;
float t = theta_h - offset;
- float phi_pdf = cos(phi_i * 0.5f) * 0.25f / roughness2;
+ float phi_pdf = cosf(phi_i * 0.5f) * 0.25f / roughness2;
float theta_pdf = roughness1 / (2 * (t*t + roughness1*roughness1) * (a_R - b_R)* costheta_i);
*pdf = phi_pdf * theta_pdf;
@@ -191,7 +191,7 @@ ccl_device int bsdf_hair_reflection_sample(const ShaderClosure *sc, float3 Ng, f
float phi = 2 * safe_asinf(1 - 2 * randv) * roughness2;
- float phi_pdf = cos(phi * 0.5f) * 0.25f / roughness2;
+ float phi_pdf = cosf(phi * 0.5f) * 0.25f / roughness2;
float theta_pdf = roughness1 / (2 * (t*t + roughness1*roughness1) * (a_R - b_R)*costheta_i);