[Bf-blender-cvs] [291152e] master: Add back ray bounces debug code, can be useful nevertheless. Just need to keep in mind that these are not indirect bounces in the pass then.

Thomas Dinges noreply at git.blender.org
Tue Jun 16 00:39:31 CEST 2015


Commit: 291152e127e6cc4b605208739522a36c4b03e999
Author: Thomas Dinges
Date:   Tue Jun 16 00:37:34 2015 +0200
Branches: master
https://developer.blender.org/rB291152e127e6cc4b605208739522a36c4b03e999

Add back ray bounces debug code, can be useful nevertheless.
Just need to keep in mind that these are not indirect bounces in the pass then.

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

M	intern/cycles/kernel/kernel_path_branched.h

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

diff --git a/intern/cycles/kernel/kernel_path_branched.h b/intern/cycles/kernel/kernel_path_branched.h
index 431ee78..ae8a9c9 100644
--- a/intern/cycles/kernel/kernel_path_branched.h
+++ b/intern/cycles/kernel/kernel_path_branched.h
@@ -229,6 +229,7 @@ ccl_device float4 kernel_branched_path_integrate(KernelGlobals *kg, RNG *rng, in
 #ifdef __KERNEL_DEBUG__
 		debug_data.num_bvh_traversal_steps += isect.num_traversal_steps;
 		debug_data.num_bvh_traversed_instances += isect.num_traversed_instances;
+		debug_data.num_ray_bounces++;
 #endif
 
 #ifdef __VOLUME__




More information about the Bf-blender-cvs mailing list