diff options
author | chai <chaifix@163.com> | 2020-10-23 13:08:43 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2020-10-23 13:08:43 +0800 |
commit | b82da95b5181ac8bbae38efb13e950d5e88a4caa (patch) | |
tree | 48a6f3269276484bbc7cfc95f0651f40a2176aa1 /Assets/AmplifyShaderEditor/Plugins/Editor/Nodes/SimpleNodes | |
parent | 917e9e0b320775634dc2e710f7deac74fd0822f0 (diff) |
*移动amplify shader editor到third party目录
Diffstat (limited to 'Assets/AmplifyShaderEditor/Plugins/Editor/Nodes/SimpleNodes')
14 files changed, 0 insertions, 511 deletions
diff --git a/Assets/AmplifyShaderEditor/Plugins/Editor/Nodes/SimpleNodes/SimpleAddOpNode.cs b/Assets/AmplifyShaderEditor/Plugins/Editor/Nodes/SimpleNodes/SimpleAddOpNode.cs deleted file mode 100644 index 463528fd..00000000 --- a/Assets/AmplifyShaderEditor/Plugins/Editor/Nodes/SimpleNodes/SimpleAddOpNode.cs +++ /dev/null @@ -1,58 +0,0 @@ -// Amplify Shader Editor - Visual Shader Editing Tool -// Copyright (c) Amplify Creations, Lda <info@amplify.pt> - -using UnityEngine; -using UnityEditor; -using System; - -namespace AmplifyShaderEditor -{ - [Serializable] - [NodeAttributes( "Add", "Math Operators", "Addition of two or more values ( A + B + .. )", null, KeyCode.A )] - public sealed class SimpleAddOpNode : DynamicTypeNode - { - private int m_cachedPropertyId = -1; - - protected override void CommonInit( int uniqueId ) - { - m_dynamicRestrictions = new WirePortDataType[] - { - WirePortDataType.OBJECT, - WirePortDataType.FLOAT, - WirePortDataType.FLOAT2, - WirePortDataType.FLOAT3, - WirePortDataType.FLOAT4, - WirePortDataType.COLOR, - WirePortDataType.FLOAT3x3, - WirePortDataType.FLOAT4x4, - WirePortDataType.INT - }; - - base.CommonInit( uniqueId ); - m_extensibleInputPorts = true; - m_previewShaderGUID = "9eb150cbc752cbc458a0a37984b9934a"; - } - - public override void SetPreviewInputs() - { - base.SetPreviewInputs(); - - if ( m_cachedPropertyId == -1 ) - m_cachedPropertyId = Shader.PropertyToID( "_Count" ); - - PreviewMaterial.SetInt( m_cachedPropertyId, m_inputPorts.Count); - } - - public override string BuildResults( int outputId, ref MasterNodeDataCollector dataCollector, bool ignoreLocalvar ) - { - base.BuildResults( outputId, ref dataCollector, ignoreLocalvar ); - string result = "( " + m_extensibleInputResults[ 0 ]; - for ( int i = 1; i < m_extensibleInputResults.Count; i++ ) - { - result += " + " + m_extensibleInputResults[ i ]; - } - result += " )"; - return result; - } - } -} diff --git a/Assets/AmplifyShaderEditor/Plugins/Editor/Nodes/SimpleNodes/SimpleAddOpNode.cs.meta b/Assets/AmplifyShaderEditor/Plugins/Editor/Nodes/SimpleNodes/SimpleAddOpNode.cs.meta deleted file mode 100644 index c3660959..00000000 --- a/Assets/AmplifyShaderEditor/Plugins/Editor/Nodes/SimpleNodes/SimpleAddOpNode.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 6ca9162ab6c708f40bbc21f0c22909fa -timeCreated: 1481126956 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/AmplifyShaderEditor/Plugins/Editor/Nodes/SimpleNodes/SimpleDivideOpNode.cs b/Assets/AmplifyShaderEditor/Plugins/Editor/Nodes/SimpleNodes/SimpleDivideOpNode.cs deleted file mode 100644 index 0cafeb3c..00000000 --- a/Assets/AmplifyShaderEditor/Plugins/Editor/Nodes/SimpleNodes/SimpleDivideOpNode.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Amplify Shader Editor - Visual Shader Editing Tool -// Copyright (c) Amplify Creations, Lda <info@amplify.pt> - -using UnityEngine; -using System; - -namespace AmplifyShaderEditor -{ - [Serializable] - [NodeAttributes( "Divide", "Math Operators", "Division of two values ( A / B )", null, KeyCode.D )] - public sealed class SimpleDivideOpNode : DynamicTypeNode - { - protected override void CommonInit( int uniqueId ) - { - m_dynamicRestrictions = new WirePortDataType[] - { - WirePortDataType.OBJECT, - WirePortDataType.FLOAT, - WirePortDataType.FLOAT2, - WirePortDataType.FLOAT3, - WirePortDataType.FLOAT4, - WirePortDataType.COLOR, - WirePortDataType.FLOAT3x3, - WirePortDataType.FLOAT4x4, - WirePortDataType.INT - }; - - base.CommonInit( uniqueId ); - m_allowMatrixCheck = true; - m_previewShaderGUID = "409f06d00d1094849b0834c52791fa72"; - } - - public override string BuildResults( int outputId, ref MasterNodeDataCollector dataCollector, bool ignoreLocalvar ) - { - SetExtensibleInputData( outputId, ref dataCollector, ignoreLocalvar ); - string result = "( " + m_extensibleInputResults[ 0 ]; - for ( int i = 1; i < m_extensibleInputResults.Count; i++ ) - { - result += " / " + m_extensibleInputResults[ i ]; - } - result += " )"; - return result; - } - } -} diff --git a/Assets/AmplifyShaderEditor/Plugins/Editor/Nodes/SimpleNodes/SimpleDivideOpNode.cs.meta b/Assets/AmplifyShaderEditor/Plugins/Editor/Nodes/SimpleNodes/SimpleDivideOpNode.cs.meta deleted file mode 100644 index 98e759a8..00000000 --- a/Assets/AmplifyShaderEditor/Plugins/Editor/Nodes/SimpleNodes/SimpleDivideOpNode.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: e80e305761a1e6c4898e401a64b17f84 -timeCreated: 1481126960 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/AmplifyShaderEditor/Plugins/Editor/Nodes/SimpleNodes/SimpleMaxOpNode.cs b/Assets/AmplifyShaderEditor/Plugins/Editor/Nodes/SimpleNodes/SimpleMaxOpNode.cs deleted file mode 100644 index fdb3c8ce..00000000 --- a/Assets/AmplifyShaderEditor/Plugins/Editor/Nodes/SimpleNodes/SimpleMaxOpNode.cs +++ /dev/null @@ -1,24 +0,0 @@ -// Amplify Shader Editor - Visual Shader Editing Tool -// Copyright (c) Amplify Creations, Lda <info@amplify.pt> - -using System; - -namespace AmplifyShaderEditor -{ - [Serializable] - [NodeAttributes( "Max", "Math Operators", "Maximum of two scalars or each respective component of two vectors" )] - public sealed class SimpleMaxOpNode : DynamicTypeNode - { - protected override void CommonInit( int uniqueId ) - { - base.CommonInit( uniqueId ); - m_previewShaderGUID = "79d7f2a11092ac84a95ef6823b34adf2"; - } - - public override string BuildResults( int outputId, ref MasterNodeDataCollector dataCollector, bool ignoreLocalvar ) - { - base.BuildResults( outputId, ref dataCollector, ignoreLocalvar ); - return "max( " + m_inputA + " , " + m_inputB + " )"; - } - } -} diff --git a/Assets/AmplifyShaderEditor/Plugins/Editor/Nodes/SimpleNodes/SimpleMaxOpNode.cs.meta b/Assets/AmplifyShaderEditor/Plugins/Editor/Nodes/SimpleNodes/SimpleMaxOpNode.cs.meta deleted file mode 100644 index fe8023a1..00000000 --- a/Assets/AmplifyShaderEditor/Plugins/Editor/Nodes/SimpleNodes/SimpleMaxOpNode.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 4ea5a2904ca58164086eeb8ef3084ed2 -timeCreated: 1481126955 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/AmplifyShaderEditor/Plugins/Editor/Nodes/SimpleNodes/SimpleMinOpNode.cs b/Assets/AmplifyShaderEditor/Plugins/Editor/Nodes/SimpleNodes/SimpleMinOpNode.cs deleted file mode 100644 index 4b24eb3c..00000000 --- a/Assets/AmplifyShaderEditor/Plugins/Editor/Nodes/SimpleNodes/SimpleMinOpNode.cs +++ /dev/null @@ -1,24 +0,0 @@ -// Amplify Shader Editor - Visual Shader Editing Tool -// Copyright (c) Amplify Creations, Lda <info@amplify.pt> - -using System; - -namespace AmplifyShaderEditor -{ - [Serializable] - [NodeAttributes( "Min", "Math Operators", "Minimum of two scalars or each respective component of two vectors" )] - public sealed class SimpleMinOpNode : DynamicTypeNode - { - protected override void CommonInit( int uniqueId ) - { - base.CommonInit( uniqueId ); - m_previewShaderGUID = "d6033298044f0f14aa9932ca46e58ce6"; - } - - public override string BuildResults( int outputId, ref MasterNodeDataCollector dataCollector, bool ignoreLocalvar ) - { - base.BuildResults( outputId, ref dataCollector, ignoreLocalvar ); - return "min( " + m_inputA + " , " + m_inputB + " )"; - } - } -} diff --git a/Assets/AmplifyShaderEditor/Plugins/Editor/Nodes/SimpleNodes/SimpleMinOpNode.cs.meta b/Assets/AmplifyShaderEditor/Plugins/Editor/Nodes/SimpleNodes/SimpleMinOpNode.cs.meta deleted file mode 100644 index a92e3e5f..00000000 --- a/Assets/AmplifyShaderEditor/Plugins/Editor/Nodes/SimpleNodes/SimpleMinOpNode.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 1b19c8479d7a7a9458a6f556bf6545d5 -timeCreated: 1481126954 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/AmplifyShaderEditor/Plugins/Editor/Nodes/SimpleNodes/SimpleMultiplyOpNode.cs b/Assets/AmplifyShaderEditor/Plugins/Editor/Nodes/SimpleNodes/SimpleMultiplyOpNode.cs deleted file mode 100644 index 4a41a775..00000000 --- a/Assets/AmplifyShaderEditor/Plugins/Editor/Nodes/SimpleNodes/SimpleMultiplyOpNode.cs +++ /dev/null @@ -1,175 +0,0 @@ -// Amplify Shader Editor - Visual Shader Editing Tool -// Copyright (c) Amplify Creations, Lda <info@amplify.pt> - -using UnityEngine; -using System; - -namespace AmplifyShaderEditor -{ - [Serializable] - [NodeAttributes( "Multiply", "Math Operators", "Multiplication of two or more values ( A * B * .. )\nIt also handles Matrices multiplication", null, KeyCode.M )] - public sealed class SimpleMultiplyOpNode : DynamicTypeNode - { - protected override void CommonInit( int uniqueId ) - { - m_dynamicRestrictions = new WirePortDataType[] - { - WirePortDataType.OBJECT, - WirePortDataType.FLOAT, - WirePortDataType.FLOAT2, - WirePortDataType.FLOAT3, - WirePortDataType.FLOAT4, - WirePortDataType.COLOR, - WirePortDataType.FLOAT3x3, - WirePortDataType.FLOAT4x4, - WirePortDataType.INT - }; - - base.CommonInit( uniqueId ); - m_extensibleInputPorts = true; - m_vectorMatrixOps = true; - m_previewShaderGUID = "1ba1e43e86415ff4bbdf4d81dfcf035b"; - } - - public override void SetPreviewInputs() - { - base.SetPreviewInputs(); - - int count = 0; - int inputCount = m_inputPorts.Count; - for( int i = 2; i < inputCount; i++ ) - { - count++; - if( !m_inputPorts[ i ].IsConnected ) - PreviewMaterial.SetTexture( ( "_" + Convert.ToChar( i + 65 ) ), UnityEditor.EditorGUIUtility.whiteTexture ); - } - - m_previewMaterialPassId = count; - } - - public override string BuildResults( int outputId, ref MasterNodeDataCollector dataCollector, bool ignoreLocalvar ) - { - if( m_inputPorts[ 0 ].DataType == WirePortDataType.FLOAT3x3 || - m_inputPorts[ 0 ].DataType == WirePortDataType.FLOAT4x4 || - m_inputPorts[ 1 ].DataType == WirePortDataType.FLOAT3x3 || - m_inputPorts[ 1 ].DataType == WirePortDataType.FLOAT4x4 ) - { - m_inputA = m_inputPorts[ 0 ].GeneratePortInstructions( ref dataCollector ); - m_inputB = m_inputPorts[ 1 ].GeneratePortInstructions( ref dataCollector ); - - - WirePortDataType autoCast = WirePortDataType.OBJECT; - // Check matrix on first input - if( m_inputPorts[ 0 ].DataType == WirePortDataType.FLOAT3x3 ) - { - switch( m_inputPorts[ 1 ].DataType ) - { - case WirePortDataType.OBJECT: - case WirePortDataType.FLOAT: - case WirePortDataType.INT: - case WirePortDataType.FLOAT2: - case WirePortDataType.FLOAT4: - case WirePortDataType.COLOR: - { - m_inputB = UIUtils.CastPortType( ref dataCollector, CurrentPrecisionType, new NodeCastInfo( UniqueId, outputId ), m_inputB, m_inputPorts[ 1 ].DataType, WirePortDataType.FLOAT3, m_inputB ); - autoCast = WirePortDataType.FLOAT3; - } - break; - case WirePortDataType.FLOAT4x4: - { - m_inputA = UIUtils.CastPortType( ref dataCollector, CurrentPrecisionType, new NodeCastInfo( UniqueId, outputId ), m_inputA, m_inputPorts[ 0 ].DataType, WirePortDataType.FLOAT4x4, m_inputA ); - } - break; - case WirePortDataType.FLOAT3: - case WirePortDataType.FLOAT3x3: break; - } - } - - if( m_inputPorts[ 0 ].DataType == WirePortDataType.FLOAT4x4 ) - { - switch( m_inputPorts[ 1 ].DataType ) - { - case WirePortDataType.OBJECT: - case WirePortDataType.FLOAT: - case WirePortDataType.INT: - case WirePortDataType.FLOAT2: - case WirePortDataType.FLOAT3: - { - m_inputB = UIUtils.CastPortType( ref dataCollector, CurrentPrecisionType, new NodeCastInfo( UniqueId, outputId ), m_inputB, m_inputPorts[ 1 ].DataType, WirePortDataType.FLOAT4, m_inputB ); - autoCast = WirePortDataType.FLOAT4; - } - break; - case WirePortDataType.FLOAT3x3: - { - m_inputB = UIUtils.CastPortType( ref dataCollector, CurrentPrecisionType, new NodeCastInfo( UniqueId, outputId ), m_inputB, m_inputPorts[ 1 ].DataType, WirePortDataType.FLOAT4x4, m_inputB ); - } - break; - case WirePortDataType.FLOAT4x4: - case WirePortDataType.FLOAT4: - case WirePortDataType.COLOR: break; - } - } - - // Check matrix on second input - if( m_inputPorts[ 1 ].DataType == WirePortDataType.FLOAT3x3 ) - { - switch( m_inputPorts[ 0 ].DataType ) - { - case WirePortDataType.OBJECT: - case WirePortDataType.FLOAT: - case WirePortDataType.INT: - case WirePortDataType.FLOAT2: - case WirePortDataType.FLOAT4: - case WirePortDataType.COLOR: - { - m_inputA = UIUtils.CastPortType( ref dataCollector, CurrentPrecisionType, new NodeCastInfo( UniqueId, outputId ), m_inputA, m_inputPorts[ 0 ].DataType, WirePortDataType.FLOAT3, m_inputA ); - autoCast = WirePortDataType.FLOAT3; - } - break; - case WirePortDataType.FLOAT4x4: - case WirePortDataType.FLOAT3: - case WirePortDataType.FLOAT3x3: break; - } - } - - if( m_inputPorts[ 1 ].DataType == WirePortDataType.FLOAT4x4 ) - { - switch( m_inputPorts[ 0 ].DataType ) - { - case WirePortDataType.OBJECT: - case WirePortDataType.FLOAT: - case WirePortDataType.INT: - case WirePortDataType.FLOAT2: - case WirePortDataType.FLOAT3: - { - m_inputA = UIUtils.CastPortType( ref dataCollector, CurrentPrecisionType, new NodeCastInfo( UniqueId, outputId ), m_inputA, m_inputPorts[ 0 ].DataType, WirePortDataType.FLOAT4, m_inputA ); - autoCast = WirePortDataType.FLOAT4; - } - break; - case WirePortDataType.FLOAT3x3: - case WirePortDataType.FLOAT4x4: - case WirePortDataType.FLOAT4: - case WirePortDataType.COLOR: break; - } - } - string result = "mul( " + m_inputA + ", " + m_inputB + " )"; - if( autoCast != WirePortDataType.OBJECT && autoCast != m_outputPorts[ 0 ].DataType ) - { - result = UIUtils.CastPortType( ref dataCollector, CurrentPrecisionType, new NodeCastInfo( UniqueId, outputId ), result, autoCast, m_outputPorts[ 0 ].DataType, result ); - } - return result; - } - else - { - base.BuildResults( outputId, ref dataCollector, ignoreLocalvar ); - string result = "( " + m_extensibleInputResults[ 0 ]; - for( int i = 1; i < m_extensibleInputResults.Count; i++ ) - { - result += " * " + m_extensibleInputResults[ i ]; - } - result += " )"; - return result; - } - } - } -} diff --git a/Assets/AmplifyShaderEditor/Plugins/Editor/Nodes/SimpleNodes/SimpleMultiplyOpNode.cs.meta b/Assets/AmplifyShaderEditor/Plugins/Editor/Nodes/SimpleNodes/SimpleMultiplyOpNode.cs.meta deleted file mode 100644 index 0283ca77..00000000 --- a/Assets/AmplifyShaderEditor/Plugins/Editor/Nodes/SimpleNodes/SimpleMultiplyOpNode.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 647081578ac7f014d98090d36b5b1bc8 -timeCreated: 1481126956 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/AmplifyShaderEditor/Plugins/Editor/Nodes/SimpleNodes/SimpleRemainderNode.cs b/Assets/AmplifyShaderEditor/Plugins/Editor/Nodes/SimpleNodes/SimpleRemainderNode.cs deleted file mode 100644 index 64da4fdf..00000000 --- a/Assets/AmplifyShaderEditor/Plugins/Editor/Nodes/SimpleNodes/SimpleRemainderNode.cs +++ /dev/null @@ -1,62 +0,0 @@ -// Amplify Shader Editor - Visual Shader Editing Tool -// Copyright (c) Amplify Creations, Lda <info@amplify.pt> - -using System; - -namespace AmplifyShaderEditor -{ - [Serializable] - [NodeAttributes( "Remainder", "Math Operators", "Remainder between two int variables",tags:"modulo fmod" )] - public sealed class SimpleRemainderNode : DynamicTypeNode - { - private const string VertexFragRemainder = "( {0} % {1} )"; - private const string SurfaceRemainder = "fmod( {0} , {1} )"; - - protected override void CommonInit( int uniqueId ) - { - base.CommonInit( uniqueId ); - m_useInternalPortData = true; - m_textLabelWidth = 35; - ChangeInputType( WirePortDataType.INT, false ); - ChangeOutputType( WirePortDataType.INT, false ); - m_useInternalPortData = true; - m_previewShaderGUID = "8fdfc429d6b191c4985c9531364c1a95"; - } - - public override string BuildResults( int outputId, ref MasterNodeDataCollector dataCollector, bool ignoreLocalvar ) - { - if( m_outputPorts[ 0 ].IsLocalValue( dataCollector.PortCategory ) ) - return m_outputPorts[ 0 ].LocalValue( dataCollector.PortCategory ); - - base.BuildResults( outputId, ref dataCollector, ignoreLocalvar ); -#if UNITY_2018_1_OR_NEWER - string opMode = VertexFragRemainder; -#else - string opMode = dataCollector.IsTemplate ? VertexFragRemainder : SurfaceRemainder; -#endif - string result = string.Empty; - switch( m_outputPorts[ 0 ].DataType ) - { - case WirePortDataType.FLOAT: - case WirePortDataType.FLOAT2: - case WirePortDataType.FLOAT3: - case WirePortDataType.FLOAT4: - case WirePortDataType.INT: - case WirePortDataType.COLOR: - case WirePortDataType.OBJECT: - { - result = string.Format( opMode, m_inputA, m_inputB ); - } - break; - case WirePortDataType.FLOAT3x3: - case WirePortDataType.FLOAT4x4: - { - result = UIUtils.InvalidParameter( this ); - } - break; - } - - return CreateOutputLocalVariable( 0, result, ref dataCollector ); - } - } -} diff --git a/Assets/AmplifyShaderEditor/Plugins/Editor/Nodes/SimpleNodes/SimpleRemainderNode.cs.meta b/Assets/AmplifyShaderEditor/Plugins/Editor/Nodes/SimpleNodes/SimpleRemainderNode.cs.meta deleted file mode 100644 index 528ea33f..00000000 --- a/Assets/AmplifyShaderEditor/Plugins/Editor/Nodes/SimpleNodes/SimpleRemainderNode.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 5785c326a26d2ba4ab642fc2bdd41e9a -timeCreated: 1481126955 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/AmplifyShaderEditor/Plugins/Editor/Nodes/SimpleNodes/SimpleSubtractOpNode.cs b/Assets/AmplifyShaderEditor/Plugins/Editor/Nodes/SimpleNodes/SimpleSubtractOpNode.cs deleted file mode 100644 index eaabab20..00000000 --- a/Assets/AmplifyShaderEditor/Plugins/Editor/Nodes/SimpleNodes/SimpleSubtractOpNode.cs +++ /dev/null @@ -1,39 +0,0 @@ -// Amplify Shader Editor - Visual Shader Editing Tool -// Copyright (c) Amplify Creations, Lda <info@amplify.pt> - -using System; -using UnityEngine; - -namespace AmplifyShaderEditor -{ - [Serializable] - [NodeAttributes( "Subtract", "Math Operators", "Subtraction of two values ( A - B )", null, UnityEngine.KeyCode.S )] - public sealed class SimpleSubtractOpNode : DynamicTypeNode - { - protected override void CommonInit( int uniqueId ) - { - m_dynamicRestrictions = new WirePortDataType[] - { - WirePortDataType.OBJECT, - WirePortDataType.FLOAT, - WirePortDataType.FLOAT2, - WirePortDataType.FLOAT3, - WirePortDataType.FLOAT4, - WirePortDataType.COLOR, - WirePortDataType.FLOAT3x3, - WirePortDataType.FLOAT4x4, - WirePortDataType.INT - }; - - base.CommonInit( uniqueId ); - m_allowMatrixCheck = true; - m_previewShaderGUID = "5725e8300be208449973f771ab6682f2"; - } - - public override string BuildResults( int outputId, ref MasterNodeDataCollector dataCollector, bool ignoreLocalvar ) - { - base.BuildResults( outputId, ref dataCollector, ignoreLocalvar ); - return "( " + m_inputA + " - " + m_inputB + " )"; - } - } -} diff --git a/Assets/AmplifyShaderEditor/Plugins/Editor/Nodes/SimpleNodes/SimpleSubtractOpNode.cs.meta b/Assets/AmplifyShaderEditor/Plugins/Editor/Nodes/SimpleNodes/SimpleSubtractOpNode.cs.meta deleted file mode 100644 index a550f19a..00000000 --- a/Assets/AmplifyShaderEditor/Plugins/Editor/Nodes/SimpleNodes/SimpleSubtractOpNode.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 204f935dafd0a984297e242583de1da5 -timeCreated: 1481126954 -licenseType: Store -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: |