[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [59871] trunk/blender/source/blender/ compositor/operations/COM_PlaneTrackWarpImageOperation.cpp: On the second thought, no need to go between straight and premul when doing AA for plane warp node

Sergey Sharybin sergey.vfx at gmail.com
Fri Sep 6 11:56:04 CEST 2013


Revision: 59871
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=59871
Author:   nazgul
Date:     2013-09-06 09:56:04 +0000 (Fri, 06 Sep 2013)
Log Message:
-----------
On the second thought, no need to go between straight and premul when doing AA for plane warp node

Modified Paths:
--------------
    trunk/blender/source/blender/compositor/operations/COM_PlaneTrackWarpImageOperation.cpp

Modified: trunk/blender/source/blender/compositor/operations/COM_PlaneTrackWarpImageOperation.cpp
===================================================================
--- trunk/blender/source/blender/compositor/operations/COM_PlaneTrackWarpImageOperation.cpp	2013-09-06 09:31:14 UTC (rev 59870)
+++ trunk/blender/source/blender/compositor/operations/COM_PlaneTrackWarpImageOperation.cpp	2013-09-06 09:56:04 UTC (rev 59871)
@@ -143,13 +143,11 @@
 			v *= this->m_pixelReader->getHeight();
 
 			this->m_pixelReader->read(current_color, u, v, dx, dy, COM_PS_NEAREST);
-			premul_to_straight_v4(current_color);
 			add_v4_v4(color_accum, current_color);
 		}
 	}
 
 	mul_v4_v4fl(output, color_accum, 1.0f / this->m_osa);
-	straight_to_premul_v4(output);
 }
 
 bool PlaneTrackWarpImageOperation::determineDependingAreaOfInterest(rcti *input, ReadBufferOperation *readOperation, rcti *output)




More information about the Bf-blender-cvs mailing list