ncannasse 8 年之前
父節點
當前提交
4c7ce303fe
共有 1 個文件被更改,包括 2 次插入1 次删除
  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);
 	}
 
 }