Ver Fonte

Added test node

Clement Espeute há 1 ano atrás
pai
commit
4a95e4f2b6
1 ficheiros alterados com 16 adições e 0 exclusões
  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);
+		}
+	}
+}