ソースを参照

Add calculatedUV to ShaderOutput

trethaller 6 年 前
コミット
3dbf4689d8
1 ファイル変更9 行追加1 行削除
  1. 9 1
      hrt/shgraph/ShaderOutput.hx

+ 9 - 1
hrt/shgraph/ShaderOutput.hx

@@ -33,7 +33,15 @@ class ShaderOutput extends ShaderNode {
 
 	}
 
-	static var availableOutputs = [];
+	static var availableOutputs = [
+		{
+			parent: null,
+			id: 0,
+			kind: Var,
+			name: "calculatedUV",
+			type: TVec(2, VFloat)
+		}
+	];
 
 	override public function loadProperties(props : Dynamic) {
 		var paramVariable : Array<String> = Reflect.field(props, "variable");