ncannasse 8 years ago
parent
commit
4c7ce303fe
1 changed files with 2 additions and 1 deletions
  1. 2 1
      h3d/shader/FixedColor.hx

+ 2 - 1
h3d/shader/FixedColor.hx

@@ -4,6 +4,7 @@ class FixedColor extends hxsl.Shader {
 
 	static var SRC = {
 		@param var color : Vec4;
+		var output : { color : Vec4 };
 		function fragment() {
 			output.color = color;
 		}
@@ -11,7 +12,7 @@ class FixedColor extends hxsl.Shader {
 
 	public function new( color = 0, alpha = 1. ) {
 		super();
-		color.loadColor(color,alpha);
+		this.color.setColor(color,alpha);
 	}
 
 }