Remove left-over code in pre-multiplied tool.

Made the brightness of the alpha-blended texture be treated as the alpha mask itself.
master
Cyp 2012-01-08 22:56:33 +01:00
parent 4211ba77ed
commit b06e3b3312
1 changed files with 0 additions and 3 deletions

View File

@ -118,9 +118,6 @@ int main(int argc, char **argv)
Pix b(blend.pixel(x, y));
Pix p;
b.a = 1 - ((1 - b.a) + (b.r+b.g+b.b)*b.a/3);
b.r = b.g = b.b = 0;
p.a = b.a;
p.r = a.r*(1 - b.a) + b.r*b.a;
p.g = a.g*(1 - b.a) + b.g*b.a;