Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Dinges <blender@dingto.org>2015-06-16 01:37:34 +0300
committerThomas Dinges <blender@dingto.org>2015-06-16 01:39:11 +0300
commit291152e127e6cc4b605208739522a36c4b03e999 (patch)
tree6b45d51d599780dabb4c72b057ac45615d05da5e
parent6d634467104fc53701d77c7aeb1382a3c198b6d2 (diff)
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.
-rw-r--r--intern/cycles/kernel/kernel_path_branched.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/intern/cycles/kernel/kernel_path_branched.h b/intern/cycles/kernel/kernel_path_branched.h
index 431ee785e95..ae8a9c91068 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__