Blender Git Commit Log

Git Commits -> Revision 8cc4c3d

Revision 8cc4c3d by Sergey Sharybin (master)
May 22, 2017, 15:15 (GMT)
Fix T51308: Bright/Contrast Doesn't respect Pre-multiplied Alpha

Brightness/contrast node was changing color but did not modify alpha
or ensured colors are premultiplied on the output. This was giving
artifacts later on unless alpha was manually converted.

Compositor is supposed to work in premultiplied alpha (except of
some really corner cases) so it makes sense to ensure premultiplied
alpha after brightness/contrast node.

This is now done as an option enabled by default, so we:

(a) Keep compatibility with old files.
(b) Have correct behavior for newly created files.

Later on we can get rid of this option.

Commit Details:

Full Hash: 8cc4c3da8cbe8da197928fa821e140f4b2615c4c
Parent Commit: 849e77b
Lines Changed: +41, -2

7 Modified Paths:

/source/blender/compositor/nodes/COM_BrightnessNode.cpp (+2, -0) (Diff)
/source/blender/compositor/operations/COM_BrightnessOperation.cpp (+13, -1) (Diff)
/source/blender/compositor/operations/COM_BrightnessOperation.h (+3, -0) (Diff)
/source/blender/editors/space_node/drawnode.c (+7, -0) (Diff)
/source/blender/makesrna/intern/rna_nodetree.c (+10, -0) (Diff)
/source/blender/nodes/composite/nodes/node_composite_brightness.c (+5, -0) (Diff)
/source/blender/nodes/NOD_static_types.h (+1, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021