Commit: a60f1f07d6fa6c55804aa7bd7c070d709f796132
Author: Sergey Sharybin
Date:   Fri May 13 11:21:00 2016 +0200
Branches: compositor-2016
https://developer.blender.org/rBa60f1f07d6fa6c55804aa7bd7c070d709f796132

Cycles: Scale debug pass with number of samples

This way it's easier to compare different renders together without
worrying about scale too much.

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

M       intern/cycles/render/buffers.cpp

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

diff --git a/intern/cycles/render/buffers.cpp b/intern/cycles/render/buffers.cpp
index 0d62c1b..558f5e5 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

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to