diff options
Diffstat (limited to 'intern/cycles/bvh/bvh2.cpp')
-rw-r--r-- | intern/cycles/bvh/bvh2.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/intern/cycles/bvh/bvh2.cpp b/intern/cycles/bvh/bvh2.cpp index 340ba7dcf53..3e3a5d604d8 100644 --- a/intern/cycles/bvh/bvh2.cpp +++ b/intern/cycles/bvh/bvh2.cpp @@ -314,6 +314,10 @@ void BVH2::refit_node(int idx, bool leaf, BoundBox& bbox, uint& visibility) } visibility |= ob->visibility; + if (ob->is_shadow_catcher) + visibility &= ~PATH_RAY_SHADOW_NON_CATCHER; + else + visibility &= ~PATH_RAY_SHADOW_CATCHER; } /* TODO(sergey): De-duplicate with pack_leaf(). */ |