Browse Source

Added test node

Clement Espeute 1 year ago
parent
commit
4a95e4f2b6
1 changed files with 16 additions and 0 deletions
  1. 16 0
      hrt/shgraph/nodes/test/CalculatedUVNode.hx

+ 16 - 0
hrt/shgraph/nodes/test/CalculatedUVNode.hx

@@ -0,0 +1,16 @@
+package hrt.shgraph.nodes.test;
+
+@name("Calculated UV")
+@description("Testing only")
+@width(80)
+@group("Misc")
+class CalculatedUVNode extends ShaderNodeHxsl {
+
+	static var SRC = {
+		@input var uv : Vec2;
+		@sgoutput var output : Vec4;
+		function fragment() {
+			output = vec4(uv, 0.0,0.0);
+		}
+	}
+}