Cycles: Scale debug pass with number of samples

This way it's easier to compare different renders together without
worrying about scale too much.
This commit is contained in:
Sergey Sharybin 2016-05-13 11:21:00 +02:00
parent 958d613f66
commit 0903ee6ce2

@ -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