Option for Image render "Clip" gave wrong alphas on the edge of image.
This commit is contained in:
2008-09-11 16:50:34 +00:00
parent d5839f21ab
commit 3ac4cffdd0

View File

@@ -577,10 +577,10 @@ static void boxsample(ImBuf *ibuf, float minx, float miny, float maxx, float max
if(texres->talpha==0) texres->ta= 1.0;
if(alphaclip!=1.0) {
/* this is for later investigation, premul or not? */
/* texres->tr*= alphaclip; */
/* texres->tg*= alphaclip; */
/* texres->tb*= alphaclip; */
/* premul it all */
texres->tr*= alphaclip;
texres->tg*= alphaclip;
texres->tb*= alphaclip;
texres->ta*= alphaclip;
}
}