[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [50071] branches/soc-2011-tomato/intern/ cycles/kernel/kernel_path.h: Fix cycles issue with non-progressive integrator and AO, setting AO samples > 1

Brecht Van Lommel brechtvanlommel at pandora.be
Tue Aug 21 11:01:50 CEST 2012


Revision: 50071
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=50071
Author:   blendix
Date:     2012-08-21 09:01:50 +0000 (Tue, 21 Aug 2012)
Log Message:
-----------
Fix cycles issue with non-progressive integrator and AO, setting AO samples > 1
did not give properly normalized values.

Modified Paths:
--------------
    branches/soc-2011-tomato/intern/cycles/kernel/kernel_path.h

Modified: branches/soc-2011-tomato/intern/cycles/kernel/kernel_path.h
===================================================================
--- branches/soc-2011-tomato/intern/cycles/kernel/kernel_path.h	2012-08-21 08:58:47 UTC (rev 50070)
+++ branches/soc-2011-tomato/intern/cycles/kernel/kernel_path.h	2012-08-21 09:01:50 UTC (rev 50071)
@@ -693,7 +693,7 @@
 		if(kernel_data.integrator.use_ambient_occlusion) {
 			int num_samples = kernel_data.integrator.ao_samples;
 			float num_samples_inv = 1.0f/num_samples;
-			float ao_factor = kernel_data.background.ao_factor/num_samples;
+			float ao_factor = kernel_data.background.ao_factor;
 
 			for(int j = 0; j < num_samples; j++) {
 				/* todo: solve correlation */




More information about the Bf-blender-cvs mailing list