Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'intern/cycles/bvh/bvh4.cpp')
-rw-r--r--intern/cycles/bvh/bvh4.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/intern/cycles/bvh/bvh4.cpp b/intern/cycles/bvh/bvh4.cpp
index 5034ab811d5..0e460db7ed7 100644
--- a/intern/cycles/bvh/bvh4.cpp
+++ b/intern/cycles/bvh/bvh4.cpp
@@ -440,6 +440,10 @@ void BVH4::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): This is actually a copy of pack_leaf(),