diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-08-25 19:19:03 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-08-25 19:32:11 +0300 |
commit | 7dc75ea8f4ab90bdb67aa37f285893c92e445784 (patch) | |
tree | 1c3664ac20092f21fce116eca75c5d72448ddaff /intern/cycles/kernel/geom | |
parent | 9e188fdd53e5bdc2efe82ed8cfc545f5705b92e1 (diff) |
Fix T45904: Cycles bug after recent triangle intersect changes
Calculated cross product from wrong vectors by accident.
Diffstat (limited to 'intern/cycles/kernel/geom')
-rw-r--r-- | intern/cycles/kernel/geom/geom_triangle_intersect.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/kernel/geom/geom_triangle_intersect.h b/intern/cycles/kernel/geom/geom_triangle_intersect.h index 7ca046f565b..88038667909 100644 --- a/intern/cycles/kernel/geom/geom_triangle_intersect.h +++ b/intern/cycles/kernel/geom/geom_triangle_intersect.h @@ -173,7 +173,7 @@ ccl_device_inline bool triangle_intersect(KernelGlobals *kg, if(kernel_tex_fetch(__prim_visibility, triAddr) & visibility) #endif { - if(len_squared(cross(tri_a, tri_b)) < 1e-14f) { + if(len_squared(cross(A, B)) < 1e-12f) { return false; } /* Normalize U, V, W, and T. */ |