[Bf-blender-cvs] [4a562f50778] master: Fix T91714: Cycles direct/indirect clamp distinction not working correctly

Brecht Van Lommel noreply at git.blender.org
Mon Sep 27 14:38:05 CEST 2021


Commit: 4a562f50778c39ce087432094cd4eac86821a0b5
Author: Brecht Van Lommel
Date:   Mon Sep 27 14:23:56 2021 +0200
Branches: master
https://developer.blender.org/rB4a562f50778c39ce087432094cd4eac86821a0b5

Fix T91714: Cycles direct/indirect clamp distinction not working correctly

===================================================================

M	intern/cycles/kernel/kernel_accumulate.h

===================================================================

diff --git a/intern/cycles/kernel/kernel_accumulate.h b/intern/cycles/kernel/kernel_accumulate.h
index 9e12d24dcf4..f4d00e4c20c 100644
--- a/intern/cycles/kernel/kernel_accumulate.h
+++ b/intern/cycles/kernel/kernel_accumulate.h
@@ -386,7 +386,7 @@ ccl_device_inline void kernel_accum_light(INTEGRATOR_STATE_CONST_ARGS,
 {
   /* The throughput for shadow paths already contains the light shader evaluation. */
   float3 contribution = INTEGRATOR_STATE(shadow_path, throughput);
-  kernel_accum_clamp(kg, &contribution, INTEGRATOR_STATE(shadow_path, bounce) - 1);
+  kernel_accum_clamp(kg, &contribution, INTEGRATOR_STATE(shadow_path, bounce));
 
   ccl_global float *buffer = kernel_accum_pixel_render_buffer(INTEGRATOR_STATE_PASS,
                                                               render_buffer);



More information about the Bf-blender-cvs mailing list