Fix T48346: Transparent shadows do not work for instanced objects

This commit is contained in:
Sergey Sharybin 2016-05-04 14:46:30 +02:00
parent 6f2797b50b
commit 980f3c3693

@ -538,7 +538,7 @@ ccl_device_inline void bvh_instance_motion_pop_factor(KernelGlobals *kg,
float *t_fac,
Transform *itfm)
{
*t_fac /= len(transform_direction(itfm, ray->D));
*t_fac = 1.0f / len(transform_direction(itfm, ray->D));
*P = ray->P;
*dir = bvh_clamp_direction(ray->D);
*idir = bvh_inverse_direction(*dir);