[Bf-blender-cvs] [63cb7895515] blender2.7: Cycles: Made Embree ignore curve intersections with SSS.

Stefan Werner noreply at git.blender.org
Wed Mar 20 12:49:09 CET 2019


Commit: 63cb789551537d8311f9f57e34876c11d692c6b5
Author: Stefan Werner
Date:   Wed Mar 20 12:27:35 2019 +0100
Branches: blender2.7
https://developer.blender.org/rB63cb789551537d8311f9f57e34876c11d692c6b5

Cycles: Made Embree ignore curve intersections with SSS.

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

M	intern/cycles/bvh/bvh_embree.cpp

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

diff --git a/intern/cycles/bvh/bvh_embree.cpp b/intern/cycles/bvh/bvh_embree.cpp
index 4b5c7152594..fa9993d8ac3 100644
--- a/intern/cycles/bvh/bvh_embree.cpp
+++ b/intern/cycles/bvh/bvh_embree.cpp
@@ -149,6 +149,13 @@ static void rtc_filter_occluded_func(const RTCFilterFunctionNArguments* args)
 				break;
 			}
 
+			/* Ignore curves. */
+			if(hit->geomID & 1) {
+				/* This tells Embree to continue tracing. */
+				*args->valid = 0;
+				break;
+			}
+
 			/* See triangle_intersect_subsurface() for the native equivalent. */
 			for(int i = min(ctx->max_hits, ctx->ss_isect->num_hits) - 1; i >= 0; --i) {
 				if(ctx->ss_isect->hits[i].t == ray->tfar) {



More information about the Bf-blender-cvs mailing list