From 0903ee6ce26d10c79f31c523aca568ad05da576d Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Fri, 13 May 2016 11:21:00 +0200 Subject: [PATCH] Cycles: Scale debug pass with number of samples This way it's easier to compare different renders together without worrying about scale too much. --- intern/cycles/render/buffers.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/intern/cycles/render/buffers.cpp b/intern/cycles/render/buffers.cpp index 0d62c1b72de..558f5e59342 100644 --- a/intern/cycles/render/buffers.cpp +++ b/intern/cycles/render/buffers.cpp @@ -194,13 +194,13 @@ bool RenderBuffers::get_pass_rect(PassType type, float exposure, int sample, int else if(type == PASS_BVH_TRAVERSAL_STEPS) { for(int i = 0; i < size; i++, in += pass_stride, pixels++) { float f = *in; - pixels[0] = f; + pixels[0] = f*scale; } } else if(type == PASS_RAY_BOUNCES) { for(int i = 0; i < size; i++, in += pass_stride, pixels++) { float f = *in; - pixels[0] = f; + pixels[0] = f*scale; } } #endif