diff options
Diffstat (limited to 'intern/cycles/kernel/closure')
-rw-r--r-- | intern/cycles/kernel/closure/bsdf_hair.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/intern/cycles/kernel/closure/bsdf_hair.h b/intern/cycles/kernel/closure/bsdf_hair.h index 4f4fd5d26b8..3d7bdab4ff2 100644 --- a/intern/cycles/kernel/closure/bsdf_hair.h +++ b/intern/cycles/kernel/closure/bsdf_hair.h @@ -211,10 +211,6 @@ ccl_device int bsdf_hair_reflection_sample(const ShaderClosure *sc, float3 Ng, f *eval = make_float3(*pdf, *pdf, *pdf); - if(dot(locy, *omega_in) < 0.0f) { - return LABEL_REFLECT|LABEL_TRANSMIT|LABEL_GLOSSY; - } - return LABEL_REFLECT|LABEL_GLOSSY; } @@ -267,9 +263,8 @@ ccl_device int bsdf_hair_transmission_sample(const ShaderClosure *sc, float3 Ng, *eval = make_float3(*pdf, *pdf, *pdf); - if(dot(locy, *omega_in) < 0.0f) - return LABEL_TRANSMIT|LABEL_GLOSSY; - + kernel_assert(dot(locy, *omega_in) < 0.0f); + return LABEL_GLOSSY; } |