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;
        }
 }      


_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to