From 537f41250f1025c71bdcf8c55a32da1b81de5a4c Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Thu, 29 Oct 2015 21:50:46 +0500 Subject: Cycles: Fix typo in split kernel Shadow blocked kernel was using wrong array for storing intersection. --- intern/cycles/kernel/split/kernel_shadow_blocked.h | 8 +++++--- 1 file 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, -- cgit v1.2.3