Images: don't (un)premultipy non-color data
authorBrecht Van Lommel <brechtvanlommel@gmail.com>
Sun, 19 May 2019 00:56:12 +0000 (02:56 +0200)
committerBrecht Van Lommel <brechtvanlommel@gmail.com>
Sun, 19 May 2019 12:36:42 +0000 (14:36 +0200)
commit3b23b5c638feae0ad6319440771b83a64a1f9ebe
tree16fbedd83ffa6a02904d3f93576c1de1674a0584
parent7c78c20b6bf6f7dd00397c456fb9e2116febfca7
Images: don't (un)premultipy non-color data

The previous behavior here was wrong for some specific combinations of
settings, non-color RGB channels should never be affected by the alpha
channel.
intern/cycles/render/colorspace.cpp
intern/cycles/render/colorspace.h
intern/cycles/render/image.cpp
intern/cycles/render/nodes.cpp
source/blender/imbuf/intern/readimage.c
source/blender/nodes/shader/nodes/node_shader_tex_image.c