A game about forced loneliness, made by TACStudios
fork

Configure Feed

Select the types of activity you want to include in your feed.

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