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) {
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs