A game about forced loneliness, made by TACStudios
1using System.Reflection;
2
3namespace UnityEditor.ShaderGraph
4{
5 [Title("Math", "Round", "Step")]
6 class StepNode : CodeFunctionNode
7 {
8 public StepNode()
9 {
10 name = "Step";
11 }
12
13 protected override MethodInfo GetFunctionToConvert()
14 {
15 return GetType().GetMethod("Unity_Step", BindingFlags.Static | BindingFlags.NonPublic);
16 }
17
18 static string Unity_Step(
19 [Slot(0, Binding.None, 1, 1, 1, 1)] DynamicDimensionVector Edge,
20 [Slot(1, Binding.None, 0, 0, 0, 0)] DynamicDimensionVector In,
21 [Slot(2, Binding.None)] out DynamicDimensionVector Out)
22 {
23 return
24@"
25{
26 Out = step(Edge, In);
27}
28";
29 }
30 }
31}