Blender Git Commit Log

Git Commits -> Revision 3d847ed

Revision 3d847ed by Brecht Van Lommel (master)
July 8, 2013, 23:31 (GMT)
Fix #36064: cycles direct/indirect light passes with materials that have zero
RGB color components gave non-grey results when you might no expect it.

What happens is that some of the color channels are zero in the direct light
pass because their channel is zero in the color pass. The direct light pass is
defined as lighting divided by the color pass, and we can't divide by zero. We
do a division after all samples are added together to ensure that multiplication
in the compositor gives the exact combined pass even with antialiasing, DoF, ..

Found a simple tweak here, instead of setting such channels to zero it will set
it to the average of other non-zero color channels, which makes the results look
like the expected grey.

Commit Details:

Full Hash: 3d847ed6e6e0a063d1676ad9c01bcc33b23b8ac4
SVN Revision: 58086
Parent Commit: b2b6d56
Lines Changed: +37, -1

2 Modified Paths:

/intern/cycles/render/buffers.cpp (+1, -1) (Diff)
/intern/cycles/util/util_math.h (+36, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021