[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [54276] trunk/blender/intern/cycles/kernel /kernel_path.h: Fix #34087: cycles shadow pass not properly normalized for non-progressive integrator

Brecht Van Lommel brechtvanlommel at pandora.be
Sun Feb 3 14:10:56 CET 2013


Revision: 54276
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=54276
Author:   blendix
Date:     2013-02-03 13:10:56 +0000 (Sun, 03 Feb 2013)
Log Message:
-----------
Fix #34087: cycles shadow pass not properly normalized for non-progressive integrator
with > 1 samples for a lamp.

Modified Paths:
--------------
    trunk/blender/intern/cycles/kernel/kernel_path.h

Modified: trunk/blender/intern/cycles/kernel/kernel_path.h
===================================================================
--- trunk/blender/intern/cycles/kernel/kernel_path.h	2013-02-03 12:19:14 UTC (rev 54275)
+++ trunk/blender/intern/cycles/kernel/kernel_path.h	2013-02-03 13:10:56 UTC (rev 54276)
@@ -841,7 +841,7 @@
 
 						if(!shadow_blocked(kg, &state, &light_ray, &shadow)) {
 							/* accumulate */
-							path_radiance_accum_light(&L, throughput*num_samples_inv, &L_light, shadow, state.bounce, is_lamp);
+							path_radiance_accum_light(&L, throughput*num_samples_inv, &L_light, shadow*num_samples_inv, state.bounce, is_lamp);
 						}
 					}
 				}
@@ -870,7 +870,7 @@
 
 						if(!shadow_blocked(kg, &state, &light_ray, &shadow)) {
 							/* accumulate */
-							path_radiance_accum_light(&L, throughput*num_samples_inv, &L_light, shadow, state.bounce, is_lamp);
+							path_radiance_accum_light(&L, throughput*num_samples_inv, &L_light, shadow*num_samples_inv, state.bounce, is_lamp);
 						}
 					}
 				}




More information about the Bf-blender-cvs mailing list