Fix T48346: Transparent shadows do not work for instanced objects
This commit is contained in:
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
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue