forked from bartvdbraak/blender
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:
parent
a513586cd2
commit
5eebd7cc1f
@ -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__ */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user