diff options
author | Stefan Werner <stefan.werner@tangent-animation.com> | 2019-10-01 20:35:56 +0300 |
---|---|---|
committer | Stefan Werner <stefan.werner@tangent-animation.com> | 2019-10-01 20:35:56 +0300 |
commit | 5eebd7cc1fe94916edf1d7797a408ada3ac0186b (patch) | |
tree | ef5124f71a381889458975cc2682b01d3aecd557 /intern/cycles/kernel/bvh/bvh.h | |
parent | a513586cd23e14c79f23fe14297bdca78019ec14 (diff) |
Cycles: Fixed Camera inside volumes with Embree turned on.
The Embree backend did not properly recognize when the camera was
inside a volume and ended up ignoring those.
Diffstat (limited to 'intern/cycles/kernel/bvh/bvh.h')
-rw-r--r-- | intern/cycles/kernel/bvh/bvh.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/kernel/bvh/bvh.h b/intern/cycles/kernel/bvh/bvh.h index d0bc1fe4b36..0346f5e09e7 100644 --- a/intern/cycles/kernel/bvh/bvh.h +++ b/intern/cycles/kernel/bvh/bvh.h @@ -575,7 +575,7 @@ ccl_device_intersect uint scene_intersect_volume_all(KernelGlobals *kg, RTCRay rtc_ray; kernel_embree_setup_ray(*ray, rtc_ray, visibility); rtcOccluded1(kernel_data.bvh.scene, &rtc_ctx.context, &rtc_ray); - return rtc_ray.tfar == -INFINITY; + return ctx.num_hits; } # endif /* __EMBREE__ */ |