diff options
author | Ton Roosendaal <ton@blender.org> | 2008-09-11 20:50:34 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2008-09-11 20:50:34 +0400 |
commit | 3ac4cffdd0b55c931924c1b95b96ec468bced186 (patch) | |
tree | f9ba8da3bfb1ef8309c0834f2b1c5ec304c32f79 /source/blender/render | |
parent | d5839f21ab59ed212ab66c98e011c10e34dc2ac7 (diff) |
Bugfix #14033
Option for Image render "Clip" gave wrong alphas on the edge of image.
Diffstat (limited to 'source/blender/render')
-rw-r--r-- | source/blender/render/intern/source/imagetexture.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/render/intern/source/imagetexture.c b/source/blender/render/intern/source/imagetexture.c index c2d27f8f3a7..b9a2acb8b1c 100644 --- a/source/blender/render/intern/source/imagetexture.c +++ b/source/blender/render/intern/source/imagetexture.c @@ -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; } } |