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