From 917e9e0b320775634dc2e710f7deac74fd0822f0 Mon Sep 17 00:00:00 2001 From: chai Date: Thu, 22 Oct 2020 23:30:02 +0800 Subject: * amplify shader editor --- .../Plugins/Editor/Nodes/CustomAddNode.cs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Assets/AmplifyShaderEditor/Plugins/Editor/Nodes/CustomAddNode.cs (limited to 'Assets/AmplifyShaderEditor/Plugins/Editor/Nodes/CustomAddNode.cs') diff --git a/Assets/AmplifyShaderEditor/Plugins/Editor/Nodes/CustomAddNode.cs b/Assets/AmplifyShaderEditor/Plugins/Editor/Nodes/CustomAddNode.cs new file mode 100644 index 00000000..c0570974 --- /dev/null +++ b/Assets/AmplifyShaderEditor/Plugins/Editor/Nodes/CustomAddNode.cs @@ -0,0 +1,19 @@ +// Amplify Shader Editor - Visual Shader Editing Tool +// Copyright (c) Amplify Creations, Lda + +using System; + +namespace AmplifyShaderEditor +{ + [Serializable] + [NodeAttributes( "Custom Add Node", "Debug", "Custom Node Debug ( Only for debug purposes)", null, UnityEngine.KeyCode.None, false )] + public sealed class CustomAddNode : CustomNode + { + protected override void CommonInit( int uniqueId ) + { + base.CommonInit( uniqueId ); + AddOutputsFromString( "customOut0", "#IP2*(#IP0 + #IP1 / #IP2)" ); + AddOutputsFromString( "customOut1", "#IP3 + #IP0*#IP2 + #IP1 / #IP2" ); + } + } +} -- cgit v1.1-26-g67d0