Commit: e7721f5ec8b859d14c982a8a34bc269ab7eed82b
Author: Sergey Sharybin
Date:   Mon Jul 25 13:53:30 2016 +0200
Branches: master
https://developer.blender.org/rBe7721f5ec8b859d14c982a8a34bc269ab7eed82b

Cycles: Fix SSS with spatial splits and motion blur

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

M       intern/cycles/kernel/geom/geom_motion_triangle.h

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

diff --git a/intern/cycles/kernel/geom/geom_motion_triangle.h 
b/intern/cycles/kernel/geom/geom_motion_triangle.h
index 2fb8e21..dabba3f 100644
--- a/intern/cycles/kernel/geom/geom_motion_triangle.h
+++ b/intern/cycles/kernel/geom/geom_motion_triangle.h
@@ -387,6 +387,12 @@ ccl_device_inline void 
motion_triangle_intersect_subsurface(
        float t, u, v;
 
        if(ray_triangle_intersect_uv(P, dir, tmax, verts[2], verts[0], 
verts[1], &u, &v, &t)) {
+               for(int i = min(max_hits, ss_isect->num_hits) - 1; i >= 0; --i) 
{
+                       if(ss_isect->hits[i].t == t) {
+                               return;
+                       }
+               }
+
                ss_isect->num_hits++;
 
                int hit;

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to