diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-06-11 11:42:38 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-06-11 15:53:15 +0300 |
commit | 2bd6de5bbb1381fa34bf4df59d9f134dd9ccce91 (patch) | |
tree | 9b096f3832f858a939631656ca564ab903d4ee9e /intern/cycles/kernel/kernel_path.h | |
parent | 3438130a94ade30b64e0b33095339a96c0c933cd (diff) |
Cycles: Add debug pass showing average number of ray bounces per pixel
Quite straightforward implementation, but still needs some work for the split
kernel. Includes both regular and split kernel implementation for that.
The pass is not exposed to the interface yet because it's currently not really
easy to have same pass listed in the menu multiple times.
Diffstat (limited to 'intern/cycles/kernel/kernel_path.h')
-rw-r--r-- | intern/cycles/kernel/kernel_path.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/intern/cycles/kernel/kernel_path.h b/intern/cycles/kernel/kernel_path.h index e2dbf6e22f7..857d97329b6 100644 --- a/intern/cycles/kernel/kernel_path.h +++ b/intern/cycles/kernel/kernel_path.h @@ -477,6 +477,7 @@ ccl_device float4 kernel_path_integrate(KernelGlobals *kg, RNG *rng, int sample, if(state.flag & PATH_RAY_CAMERA) { debug_data.num_bvh_traversal_steps += isect.num_traversal_steps; } + debug_data.num_ray_bounces++; #endif #ifdef __LAMP_MIS__ @@ -878,6 +879,7 @@ ccl_device float4 kernel_branched_path_integrate(KernelGlobals *kg, RNG *rng, in if(state.flag & PATH_RAY_CAMERA) { debug_data.num_bvh_traversal_steps += isect.num_traversal_steps; } + debug_data.num_ray_bounces++; #endif #ifdef __VOLUME__ |