diff options
author | Brecht Van Lommel <brecht@blender.org> | 2021-10-13 19:19:51 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2021-10-15 16:42:44 +0300 |
commit | 5d565062edc25575bbabf173a4e26f184103944b (patch) | |
tree | d0f41f75cbdf1260b3126f909ae2917a8ca52c2f /intern/cycles/bvh | |
parent | 509b637d594f97ce1504c65430d0643ecb4c6f9a (diff) |
Cleanup: refactor OptiX shadow intersection for upcoming changes
Diffstat (limited to 'intern/cycles/bvh')
-rw-r--r-- | intern/cycles/bvh/bvh_embree.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/bvh/bvh_embree.cpp b/intern/cycles/bvh/bvh_embree.cpp index ae5b7dd426a..76fcdf539ea 100644 --- a/intern/cycles/bvh/bvh_embree.cpp +++ b/intern/cycles/bvh/bvh_embree.cpp @@ -81,7 +81,7 @@ static void rtc_filter_occluded_func(const RTCFilterFunctionNArguments *args) kernel_embree_convert_hit(kg, ray, hit, ¤t_isect); /* If no transparent shadows, all light is blocked. */ - const int flags = intersection_get_shader_flags(kg, ¤t_isect); + const int flags = intersection_get_shader_flags(kg, current_isect.prim, current_isect.type); if (!(flags & (SD_HAS_TRANSPARENT_SHADOW)) || ctx->max_hits == 0) { ctx->opaque_hit = true; return; |