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