Cycles: Fix typo in split kernel

Shadow blocked kernel was using wrong array for storing intersection.
This commit is contained in:
Sergey Sharybin
2015-10-29 21:50:46 +05:00
parent 3300b1f232
commit 537f41250f

View File

@@ -76,7 +76,9 @@ ccl_device void kernel_shadow_blocked(
? light_ray_ao_global
: light_ray_dl_global;
Intersection *isect_global =
RAY_SHADOW_RAY_CAST_AO ? isect_ao_global : isect_dl_global;
shadow_blocked_type == RAY_SHADOW_RAY_CAST_AO
? isect_ao_global
: isect_dl_global;
float3 shadow;
update_path_radiance = !(shadow_blocked(kg,