[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [11828] branches/soc-2007-maike/release/ glsl/node_invert.gsl: Invert node glsl generic function correction

Miguel Torres Lima torreslima at gmail.com
Sat Aug 25 19:09:38 CEST 2007


Revision: 11828
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=11828
Author:   maike
Date:     2007-08-25 19:09:37 +0200 (Sat, 25 Aug 2007)

Log Message:
-----------
Invert node glsl generic function correction

Modified Paths:
--------------
    branches/soc-2007-maike/release/glsl/node_invert.gsl

Modified: branches/soc-2007-maike/release/glsl/node_invert.gsl
===================================================================
--- branches/soc-2007-maike/release/glsl/node_invert.gsl	2007-08-25 16:57:39 UTC (rev 11827)
+++ branches/soc-2007-maike/release/glsl/node_invert.gsl	2007-08-25 17:09:37 UTC (rev 11828)
@@ -1,4 +1,4 @@
-void node_invert(vec3 vect, float val, inout vec3 col)
+void node_invert(vec4 vect, float val, inout vec4 col)
 {
   float facm;
 
@@ -8,8 +8,11 @@
 
   if(val < 1.0){
     facm = 1.0 - val;
-    col.r = val * col.r + facm * vec.x;
-    col.g = val * col.g + facm * vec.y;
-    col.b = val * col.b + facm * vec.z;
+    col.r = val * col.r + (facm * vect.x);
+    col.g = val * col.g + (facm * vect.y);
+    col.b = val * col.b + (facm * vect.z);
   }
+
+  col.a = 1.0;
 }
+





More information about the Bf-blender-cvs mailing list