[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [16475] trunk/blender/source/blender/ render/intern/source/imagetexture.c: Bugfix #14033
Ton Roosendaal
ton at blender.org
Thu Sep 11 18:50:35 CEST 2008
Revision: 16475
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=16475
Author: ton
Date: 2008-09-11 18:50:34 +0200 (Thu, 11 Sep 2008)
Log Message:
-----------
Bugfix #14033
Option for Image render "Clip" gave wrong alphas on the edge of image.
Modified Paths:
--------------
trunk/blender/source/blender/render/intern/source/imagetexture.c
Modified: trunk/blender/source/blender/render/intern/source/imagetexture.c
===================================================================
--- trunk/blender/source/blender/render/intern/source/imagetexture.c 2008-09-11 16:37:53 UTC (rev 16474)
+++ trunk/blender/source/blender/render/intern/source/imagetexture.c 2008-09-11 16:50:34 UTC (rev 16475)
@@ -577,10 +577,10 @@
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;
}
}
More information about the Bf-blender-cvs
mailing list