forked from bartvdbraak/blender
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:
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) {
|
else if(type == PASS_BVH_TRAVERSAL_STEPS) {
|
||||||
for(int i = 0; i < size; i++, in += pass_stride, pixels++) {
|
for(int i = 0; i < size; i++, in += pass_stride, pixels++) {
|
||||||
float f = *in;
|
float f = *in;
|
||||||
pixels[0] = f;
|
pixels[0] = f*scale;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if(type == PASS_RAY_BOUNCES) {
|
else if(type == PASS_RAY_BOUNCES) {
|
||||||
for(int i = 0; i < size; i++, in += pass_stride, pixels++) {
|
for(int i = 0; i < size; i++, in += pass_stride, pixels++) {
|
||||||
float f = *in;
|
float f = *in;
|
||||||
pixels[0] = f;
|
pixels[0] = f*scale;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user