Fix cycles bug with new transparent shadow code, giving too much volume shadow.

This commit is contained in:
Brecht Van Lommel
2014-05-15 21:25:46 +02:00
parent 5a4f20d517
commit caed2394e2

View File

@@ -152,7 +152,9 @@ ccl_device_inline bool shadow_blocked(KernelGlobals *kg, PathState *state, Ray *
kernel_volume_shadow(kg, &ps, ray, &throughput); kernel_volume_shadow(kg, &ps, ray, &throughput);
#endif #endif
*shadow *= throughput; *shadow = throughput;
return is_zero(throughput);
} }
/* free dynamic storage */ /* free dynamic storage */