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
Notes: blender-bot 2023-02-14 07:55:02 +01:00
Referenced by issue #48749, Cycles doesn't render shadows when using the 360 stereo camera on the SSE4.1 kernel
Referenced by issue #48346, No volume scattering shadows for semi-transparent objects if multisampled scene motion blur is on
1 changed files with 1 additions and 1 deletions

View File

@ -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);