diff options
Diffstat (limited to 'intern/cycles/kernel/split/kernel_shadow_blocked.h')
-rw-r--r-- | intern/cycles/kernel/split/kernel_shadow_blocked.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/intern/cycles/kernel/split/kernel_shadow_blocked.h b/intern/cycles/kernel/split/kernel_shadow_blocked.h index a3b9f23116c..290424e2ecb 100644 --- a/intern/cycles/kernel/split/kernel_shadow_blocked.h +++ b/intern/cycles/kernel/split/kernel_shadow_blocked.h @@ -73,10 +73,12 @@ ccl_device void kernel_shadow_blocked( ccl_global Ray *light_ray_global = shadow_blocked_type == RAY_SHADOW_RAY_CAST_AO - ? light_ray_ao_global - : light_ray_dl_global; + ? 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, |