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