Commit: 87cd56b012494e20be06b63f85b798fa043c3194
Author: Sergey Sharybin
Date:   Thu Dec 1 12:11:11 2016 +0100
Branches: master
https://developer.blender.org/rB87cd56b012494e20be06b63f85b798fa043c3194

Fix T50075: Assert during debug render of hair_geom_transmission.blend

===================================================================

M       intern/cycles/kernel/closure/bsdf_hair.h

===================================================================

diff --git a/intern/cycles/kernel/closure/bsdf_hair.h 
b/intern/cycles/kernel/closure/bsdf_hair.h
index bede5f4..daaa26d 100644
--- a/intern/cycles/kernel/closure/bsdf_hair.h
+++ b/intern/cycles/kernel/closure/bsdf_hair.h
@@ -267,7 +267,10 @@ ccl_device int bsdf_hair_transmission_sample(const 
ShaderClosure *sc, float3 Ng,
 
        *eval = make_float3(*pdf, *pdf, *pdf);
 
-       kernel_assert(dot(locy, *omega_in) < 0.0f);
+       /* TODO(sergey): Should always be negative, but seems some precision 
issue
+        * is involved here.
+        */
+       kernel_assert(dot(locy, *omega_in) < 1e-4f);
 
        return LABEL_TRANSMIT|LABEL_GLOSSY;
 }

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to