Bug in Composite AddAlpha node. The option premul added alpha wrong.
authorTon Roosendaal <ton@blender.org>
Tue, 21 Feb 2006 12:41:48 +0000 (12:41 +0000)
committerTon Roosendaal <ton@blender.org>
Tue, 21 Feb 2006 12:41:48 +0000 (12:41 +0000)
source/blender/blenkernel/intern/node_composite.c

index ee2dea56bdf075aff3a6fa923e1a3f1d7da751c0..51ffd6faddc601d45084328ad1736c4187c2bf3c 100644 (file)
@@ -1950,7 +1950,7 @@ static void do_alphaover_key(bNode *node, float *out, float *src, float *over, f
                out[0]= (mul*src[0]) + premul*over[0];
                out[1]= (mul*src[1]) + premul*over[1];
                out[2]= (mul*src[2]) + premul*over[2];
-               out[3]= (mul*src[3]) + premul*over[3];
+               out[3]= (mul*src[3]) + fac*over[3];
        }
 }