blender/intern/cycles/util
Brecht Van Lommel 3d847ed6e6 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.
2013-07-08 23:31:45 +00:00
..
CMakeLists.txt Cycles Hair: refactoring to support generic attributes for hair curves. There 2013-01-03 12:08:54 +00:00
util_algorithm.h Cycles render engine, initial commit. This is the engine itself, blender modifications and build instructions will follow later. 2011-04-27 11:58:34 +00:00
util_args.h Cycles render engine, initial commit. This is the engine itself, blender modifications and build instructions will follow later. 2011-04-27 11:58:34 +00:00
util_boundbox.h Cycles: 2013-05-13 15:31:59 +00:00
util_cache.cpp Additional fix #32074, by Sven-Hendrik Haase (svenstaro). Boost version header must be included in cycles in order to expand the version check macro. 2012-07-29 13:52:38 +00:00
util_cache.h Fix cycles issue with BVH cache created with 64 bits and used for 32 bits binary, 2013-02-13 11:02:51 +00:00
util_color.h Cycles / Wavelength to RGB node: 2013-06-10 21:55:41 +00:00
util_cuda.cpp Cycles: prepare to make CUDA 5.0 the official version we use 2013-06-19 17:54:23 +00:00
util_cuda.h Cycles: prepare to make CUDA 5.0 the official version we use 2013-06-19 17:54:23 +00:00
util_debug.h Cycles render engine, initial commit. This is the engine itself, blender modifications and build instructions will follow later. 2011-04-27 11:58:34 +00:00
util_dynlib.cpp patch [#34320] Cross compiling with mingw-w64 on ubuntu 2013-02-19 12:05:38 +00:00
util_dynlib.h Cycles render engine, initial commit. This is the engine itself, blender modifications and build instructions will follow later. 2011-04-27 11:58:34 +00:00
util_foreach.h Cycles render engine, initial commit. This is the engine itself, blender modifications and build instructions will follow later. 2011-04-27 11:58:34 +00:00
util_function.h Cycles render engine, initial commit. This is the engine itself, blender modifications and build instructions will follow later. 2011-04-27 11:58:34 +00:00
util_hash.h style cleanup: assignment & indentation. 2012-06-09 18:56:12 +00:00
util_image.h Cycles render engine, initial commit. This is the engine itself, blender modifications and build instructions will follow later. 2011-04-27 11:58:34 +00:00
util_list.h Cycles render engine, initial commit. This is the engine itself, blender modifications and build instructions will follow later. 2011-04-27 11:58:34 +00:00
util_map.h Cycles: first batch of windows build fixes, not quite there yet. 2011-05-03 18:29:11 +00:00
util_math.h Fix #36064: cycles direct/indirect light passes with materials that have zero 2013-07-08 23:31:45 +00:00
util_md5.cpp style cleanup: assignment & indentation. 2012-06-09 18:56:12 +00:00
util_md5.h Cycles OSL: refactoring and fixes 2012-11-03 14:32:13 +00:00
util_memarena.cpp Cycles: remove deprecated strict aliasing flag for opencl, fix missing update 2011-09-19 11:57:31 +00:00
util_memarena.h Cycles: remove deprecated strict aliasing flag for opencl, fix missing update 2011-09-19 11:57:31 +00:00
util_opencl.cpp fix for own error in recent solitify refactor (r57402), face flip check was incorrect. 2013-06-14 16:10:32 +00:00
util_opencl.h style cleanup: assignment & indentation. 2012-06-09 18:56:12 +00:00
util_opengl.h Cycles: build without GLUT test app by default. 2011-05-01 10:00:21 +00:00
util_param.h Cycles render engine, initial commit. This is the engine itself, blender modifications and build instructions will follow later. 2011-04-27 11:58:34 +00:00
util_path.cpp Cycles OpenCL: patch #35514 by Doug Gale 2013-05-27 16:21:07 +00:00
util_path.h Cycles OpenCL: patch #35514 by Doug Gale 2013-05-27 16:21:07 +00:00
util_progress.h Cycles: persistent images option 2012-11-09 08:46:53 +00:00
util_set.h Cycles: first batch of windows build fixes, not quite there yet. 2011-05-03 18:29:11 +00:00
util_stats.h Cycles: no need in spin lock in memory statistics 2012-11-09 08:47:08 +00:00
util_string.cpp Cycles: compile opencl kernels in non-blocking thread, and don't crash on 2011-09-02 00:10:03 +00:00
util_string.h Cycles: compile opencl kernels in non-blocking thread, and don't crash on 2011-09-02 00:10:03 +00:00
util_system.cpp Fix cycles crash on some processors. We actually need S-SSE3 support for this 2013-06-18 16:52:02 +00:00
util_system.h Fix cycles intersection issue with overlapping faces on windows 32 bit and CPU 2013-02-04 16:12:37 +00:00
util_task.cpp Cycles OpenCL: keep the opencl context and program around for quicker rendering 2013-05-31 16:19:03 +00:00
util_task.h Fix cycles crash that happened with mesh emission and diffuse/glossy ray 2013-01-25 02:00:57 +00:00
util_thread.h Fix #33375: OSL geom:trianglevertices gave wrong coordinates for static BVH. 2012-12-01 19:15:05 +00:00
util_time.cpp Cycles OpenCL: keep the opencl context and program around for quicker rendering 2013-05-31 16:19:03 +00:00
util_time.h Cycles render engine, initial commit. This is the engine itself, blender modifications and build instructions will follow later. 2011-04-27 11:58:34 +00:00
util_transform.cpp Fix #34880: cycles motion blur render issue with some compilers. Actually is a bigger 2013-04-05 23:03:10 +00:00
util_transform.h Cycles: 2013-06-04 17:20:00 +00:00
util_types.h Code cleanup: cycles 2013-06-26 23:29:33 +00:00
util_vector.h Code cleanup: cycles 2013-06-26 23:29:33 +00:00
util_view.cpp style cleanup: assignment & indentation. 2012-06-09 18:56:12 +00:00
util_view.h Cycles render engine, initial commit. This is the engine itself, blender modifications and build instructions will follow later. 2011-04-27 11:58:34 +00:00
util_xml.h Cycles render engine, initial commit. This is the engine itself, blender modifications and build instructions will follow later. 2011-04-27 11:58:34 +00:00