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.
This commit is contained in:
Stefan Werner 2019-10-01 19:35:56 +02:00
parent a513586cd2
commit 5eebd7cc1f
1 changed files with 1 additions and 1 deletions

View File

@ -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__ */