|
|
|
|
|
|
|
|
|
|
namespace UnityEditor.ShaderGraph |
|
|
|
{ |
|
|
|
[Title("Preview Node")] |
|
|
|
[Title("Utility", "Preview")] |
|
|
|
public class PreviewNode : CodeFunctionNode |
|
|
|
{ |
|
|
|
public override bool hasPreview { get { return true; } } |
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
static string Unity_Preview( |
|
|
|
[Slot(0, Binding.None)] DynamicDimensionVector input, |
|
|
|
[Slot(1, Binding.None)] out DynamicDimensionVector output) |
|
|
|
[Slot(0, Binding.None)] DynamicDimensionVector In, |
|
|
|
[Slot(1, Binding.None)] out DynamicDimensionVector Out) |
|
|
|
output = input; |
|
|
|
Out = In; |
|
|
|
} |
|
|
|
";
|
|
|
|
} |