diff options
Diffstat (limited to 'Assets/ThirdParty/AmplifyShaderEditor/Plugins/Editor/Native')
22 files changed, 671 insertions, 0 deletions
diff --git a/Assets/ThirdParty/AmplifyShaderEditor/Plugins/Editor/Native/FallbackColor.cs b/Assets/ThirdParty/AmplifyShaderEditor/Plugins/Editor/Native/FallbackColor.cs new file mode 100644 index 00000000..aeafb2a3 --- /dev/null +++ b/Assets/ThirdParty/AmplifyShaderEditor/Plugins/Editor/Native/FallbackColor.cs @@ -0,0 +1,55 @@ +// Amplify Shader Editor - Visual Shader Editing Tool +// Copyright (c) Amplify Creations, Lda <info@amplify.pt> + +using System; +using UnityEngine; + +namespace AmplifyShaderEditor +{ + [Serializable] + public class FallbackColor : IFallbackVars + { + [SerializeField] + private Color m_current; + [SerializeField] + private Color m_previous; + + public FallbackColor() + { + m_current = new Color(0, 0, 0, 0); + m_previous = new Color(0, 0, 0, 0); + } + + public FallbackColor(Color data) + { + m_current = data; + m_previous = data; + } + + public void Revert() + { + Color aux = m_current; + m_current = m_previous; + m_previous = aux; + } + + public Color Current + { + get + { + return m_current; + } + + set + { + m_previous = m_current; + m_current = value; + } + } + + public override string ToString() + { + return m_current.ToString(); + } + } +} diff --git a/Assets/ThirdParty/AmplifyShaderEditor/Plugins/Editor/Native/FallbackColor.cs.meta b/Assets/ThirdParty/AmplifyShaderEditor/Plugins/Editor/Native/FallbackColor.cs.meta new file mode 100644 index 00000000..004e9aef --- /dev/null +++ b/Assets/ThirdParty/AmplifyShaderEditor/Plugins/Editor/Native/FallbackColor.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8c6dccc523e2ad440a82edd582b84a45 +timeCreated: 1481126957 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/AmplifyShaderEditor/Plugins/Editor/Native/FallbackFloat.cs b/Assets/ThirdParty/AmplifyShaderEditor/Plugins/Editor/Native/FallbackFloat.cs new file mode 100644 index 00000000..69d6f39b --- /dev/null +++ b/Assets/ThirdParty/AmplifyShaderEditor/Plugins/Editor/Native/FallbackFloat.cs @@ -0,0 +1,56 @@ +// Amplify Shader Editor - Visual Shader Editing Tool +// Copyright (c) Amplify Creations, Lda <info@amplify.pt> + +using System; +using UnityEngine; + +namespace AmplifyShaderEditor +{ + [Serializable] + public class FallbackFloat : IFallbackVars + { + [SerializeField] + private float m_current; + [SerializeField] + private float m_previous; + + public FallbackFloat() + { + m_current = 0; + m_previous = 0; + } + + public FallbackFloat( float data ) + { + m_current = data; + m_previous = data; + } + + public void Revert() + { + float aux = m_current; + m_current = m_previous; + m_previous = aux; + } + + + public float Current + { + get + { + return m_current; + } + + set + { + m_previous = m_current; + m_current = value; + } + } + + public override string ToString() + { + return m_current.ToString(); + } + } +} diff --git a/Assets/ThirdParty/AmplifyShaderEditor/Plugins/Editor/Native/FallbackFloat.cs.meta b/Assets/ThirdParty/AmplifyShaderEditor/Plugins/Editor/Native/FallbackFloat.cs.meta new file mode 100644 index 00000000..c7f6c881 --- /dev/null +++ b/Assets/ThirdParty/AmplifyShaderEditor/Plugins/Editor/Native/FallbackFloat.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a957e66c7a41d6848966d526c9687347 +timeCreated: 1481126958 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/AmplifyShaderEditor/Plugins/Editor/Native/FallbackInt.cs b/Assets/ThirdParty/AmplifyShaderEditor/Plugins/Editor/Native/FallbackInt.cs new file mode 100644 index 00000000..bd9b8a7d --- /dev/null +++ b/Assets/ThirdParty/AmplifyShaderEditor/Plugins/Editor/Native/FallbackInt.cs @@ -0,0 +1,56 @@ +// Amplify Shader Editor - Visual Shader Editing Tool +// Copyright (c) Amplify Creations, Lda <info@amplify.pt> + +using System; +using UnityEngine; + +namespace AmplifyShaderEditor +{ + [Serializable] + public class FallbackInt : IFallbackVars + { + [SerializeField] + private int m_current; + [SerializeField] + private int m_previous; + + public FallbackInt() + { + m_current = 0; + m_previous = 0; + } + + public FallbackInt( int data ) + { + m_current = data; + m_previous = data; + } + + public void Revert() + { + int aux = m_current; + m_current = m_previous; + m_previous = aux; + } + + + public int Current + { + get + { + return m_current; + } + + set + { + m_previous = m_current; + m_current = value; + } + } + + public override string ToString() + { + return m_current.ToString(); + } + } +} diff --git a/Assets/ThirdParty/AmplifyShaderEditor/Plugins/Editor/Native/FallbackInt.cs.meta b/Assets/ThirdParty/AmplifyShaderEditor/Plugins/Editor/Native/FallbackInt.cs.meta new file mode 100644 index 00000000..d75cf8df --- /dev/null +++ b/Assets/ThirdParty/AmplifyShaderEditor/Plugins/Editor/Native/FallbackInt.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 09c28ab321caf3b47839606e37d3cdd2 +timeCreated: 1481126953 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/AmplifyShaderEditor/Plugins/Editor/Native/FallbackMatrix4x4.cs b/Assets/ThirdParty/AmplifyShaderEditor/Plugins/Editor/Native/FallbackMatrix4x4.cs new file mode 100644 index 00000000..8405790d --- /dev/null +++ b/Assets/ThirdParty/AmplifyShaderEditor/Plugins/Editor/Native/FallbackMatrix4x4.cs @@ -0,0 +1,55 @@ +// Amplify Shader Editor - Visual Shader Editing Tool +// Copyright (c) Amplify Creations, Lda <info@amplify.pt> + +using System; +using UnityEngine; + +namespace AmplifyShaderEditor +{ + [Serializable] + public class FallbackMatrix4x4 : IFallbackVars + { + [SerializeField] + private Matrix4x4 m_current; + [SerializeField] + private Matrix4x4 m_previous; + + public FallbackMatrix4x4() + { + m_current = new Matrix4x4(); + m_previous = new Matrix4x4(); + } + + public FallbackMatrix4x4( Matrix4x4 data ) + { + m_current = data; + m_previous = data; + } + + public void Revert() + { + Matrix4x4 aux = m_current; + m_current = m_previous; + m_previous = aux; + } + + public Matrix4x4 Current + { + get + { + return m_current; + } + + set + { + m_previous = m_current; + m_current = value; + } + } + + public override string ToString() + { + return m_current.ToString(); + } + } +} diff --git a/Assets/ThirdParty/AmplifyShaderEditor/Plugins/Editor/Native/FallbackMatrix4x4.cs.meta b/Assets/ThirdParty/AmplifyShaderEditor/Plugins/Editor/Native/FallbackMatrix4x4.cs.meta new file mode 100644 index 00000000..e6208e24 --- /dev/null +++ b/Assets/ThirdParty/AmplifyShaderEditor/Plugins/Editor/Native/FallbackMatrix4x4.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 48af68670bdba9147b4ed55138e4edf6 +timeCreated: 1481126955 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/AmplifyShaderEditor/Plugins/Editor/Native/FallbackString.cs b/Assets/ThirdParty/AmplifyShaderEditor/Plugins/Editor/Native/FallbackString.cs new file mode 100644 index 00000000..e33e096b --- /dev/null +++ b/Assets/ThirdParty/AmplifyShaderEditor/Plugins/Editor/Native/FallbackString.cs @@ -0,0 +1,56 @@ +// Amplify Shader Editor - Visual Shader Editing Tool +// Copyright (c) Amplify Creations, Lda <info@amplify.pt> + +using System; +using UnityEngine; + +namespace AmplifyShaderEditor +{ + [Serializable] + public class FallbackString : IFallbackVars + { + [SerializeField] + private string m_current; + [SerializeField] + private string m_previous; + + public FallbackString() + { + m_current = string.Empty; + m_previous = string.Empty; + } + + public FallbackString( string data ) + { + m_current = data; + m_previous = data; + } + + public void Revert() + { + string aux = m_current; + m_current = m_previous; + m_previous = aux; + } + + + public string Current + { + get + { + return m_current; + } + + set + { + m_previous = m_current; + m_current = value; + } + } + + public override string ToString() + { + return m_current; + } + } +} diff --git a/Assets/ThirdParty/AmplifyShaderEditor/Plugins/Editor/Native/FallbackString.cs.meta b/Assets/ThirdParty/AmplifyShaderEditor/Plugins/Editor/Native/FallbackString.cs.meta new file mode 100644 index 00000000..82d80d55 --- /dev/null +++ b/Assets/ThirdParty/AmplifyShaderEditor/Plugins/Editor/Native/FallbackString.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cc2e25b7c55e9284699ccad75e79a075 +timeCreated: 1481126959 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/AmplifyShaderEditor/Plugins/Editor/Native/FallbackTexture.cs b/Assets/ThirdParty/AmplifyShaderEditor/Plugins/Editor/Native/FallbackTexture.cs new file mode 100644 index 00000000..afee1e74 --- /dev/null +++ b/Assets/ThirdParty/AmplifyShaderEditor/Plugins/Editor/Native/FallbackTexture.cs @@ -0,0 +1,55 @@ +// Amplify Shader Editor - Visual Shader Editing Tool +// Copyright (c) Amplify Creations, Lda <info@amplify.pt> + +using System; +using UnityEngine; + +namespace AmplifyShaderEditor +{ + [Serializable] + public class FallbackTexture : IFallbackVars + { + [SerializeField] + private Texture m_current; + [SerializeField] + private Texture m_previous; + + public FallbackTexture() + { + m_current = null; + m_previous = null; + } + + public FallbackTexture( Texture data ) + { + m_current = data; + m_previous = data; + } + + public void Revert() + { + Texture aux = m_current; + m_current = m_previous; + m_previous = aux; + } + + public Texture Current + { + get + { + return m_current; + } + + set + { + m_previous = m_current; + m_current = value; + } + } + + public override string ToString() + { + return m_current.ToString(); + } + } +} diff --git a/Assets/ThirdParty/AmplifyShaderEditor/Plugins/Editor/Native/FallbackTexture.cs.meta b/Assets/ThirdParty/AmplifyShaderEditor/Plugins/Editor/Native/FallbackTexture.cs.meta new file mode 100644 index 00000000..21258f26 --- /dev/null +++ b/Assets/ThirdParty/AmplifyShaderEditor/Plugins/Editor/Native/FallbackTexture.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 309e413cfa89510429c67fa82c557da7 +timeCreated: 1481126954 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/AmplifyShaderEditor/Plugins/Editor/Native/FallbackVariable.cs b/Assets/ThirdParty/AmplifyShaderEditor/Plugins/Editor/Native/FallbackVariable.cs new file mode 100644 index 00000000..c6d3eaf2 --- /dev/null +++ b/Assets/ThirdParty/AmplifyShaderEditor/Plugins/Editor/Native/FallbackVariable.cs @@ -0,0 +1,36 @@ +// Amplify Shader Editor - Visual Shader Editing Tool +// Copyright (c) Amplify Creations, Lda <info@amplify.pt> + +using UnityEngine; +using System; + +namespace AmplifyShaderEditor +{ + //GENERICS DON'T WORK WITH HOT CODE RELOAD + [Serializable] + public class FallbackVariable<T> + { + [SerializeField] + private T m_current; + [SerializeField] + private T m_last; + + public void Revert() + { + m_current = m_last; + } + + public T Current + { + get + { + return m_current; + } + set + { + m_last = m_current; + m_current = value; + } + } + } +} diff --git a/Assets/ThirdParty/AmplifyShaderEditor/Plugins/Editor/Native/FallbackVariable.cs.meta b/Assets/ThirdParty/AmplifyShaderEditor/Plugins/Editor/Native/FallbackVariable.cs.meta new file mode 100644 index 00000000..2af70abd --- /dev/null +++ b/Assets/ThirdParty/AmplifyShaderEditor/Plugins/Editor/Native/FallbackVariable.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ec850a4093c249d449f22e0483040b9c +timeCreated: 1481126960 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/AmplifyShaderEditor/Plugins/Editor/Native/FallbackVector2.cs b/Assets/ThirdParty/AmplifyShaderEditor/Plugins/Editor/Native/FallbackVector2.cs new file mode 100644 index 00000000..adad9d05 --- /dev/null +++ b/Assets/ThirdParty/AmplifyShaderEditor/Plugins/Editor/Native/FallbackVector2.cs @@ -0,0 +1,56 @@ +// Amplify Shader Editor - Visual Shader Editing Tool +// Copyright (c) Amplify Creations, Lda <info@amplify.pt> + +using System; +using UnityEngine; + +namespace AmplifyShaderEditor +{ + [Serializable] + public class FallbackVector2 : IFallbackVars + { + [SerializeField] + private Vector2 m_current; + [SerializeField] + private Vector2 m_previous; + + public FallbackVector2() + { + m_current = new Vector2( 0, 0 ); + m_previous = new Vector2( 0, 0 ); + } + + public FallbackVector2( Vector2 data ) + { + m_current = data; + m_previous = data; + } + + public void Revert() + { + Vector2 aux = m_current; + m_current = m_previous; + m_previous = aux; + } + + + public Vector2 Current + { + get + { + return m_current; + } + + set + { + m_previous = m_current; + m_current = value; + } + } + + public override string ToString() + { + return m_current.ToString(); + } + } +} diff --git a/Assets/ThirdParty/AmplifyShaderEditor/Plugins/Editor/Native/FallbackVector2.cs.meta b/Assets/ThirdParty/AmplifyShaderEditor/Plugins/Editor/Native/FallbackVector2.cs.meta new file mode 100644 index 00000000..c04cca14 --- /dev/null +++ b/Assets/ThirdParty/AmplifyShaderEditor/Plugins/Editor/Native/FallbackVector2.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ab3a976b3cb79ad41986d2f7d4439642 +timeCreated: 1481126958 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/AmplifyShaderEditor/Plugins/Editor/Native/FallbackVector3.cs b/Assets/ThirdParty/AmplifyShaderEditor/Plugins/Editor/Native/FallbackVector3.cs new file mode 100644 index 00000000..f2fe1325 --- /dev/null +++ b/Assets/ThirdParty/AmplifyShaderEditor/Plugins/Editor/Native/FallbackVector3.cs @@ -0,0 +1,56 @@ +// Amplify Shader Editor - Visual Shader Editing Tool +// Copyright (c) Amplify Creations, Lda <info@amplify.pt> + +using System; +using UnityEngine; + +namespace AmplifyShaderEditor +{ + [Serializable] + public class FallbackVector3 : IFallbackVars + { + [SerializeField] + private Vector3 m_current; + [SerializeField] + private Vector3 m_previous; + + public FallbackVector3() + { + m_current = new Vector3( 0, 0, 0 ); + m_previous = new Vector3( 0, 0, 0 ); + } + + public FallbackVector3( Vector3 data ) + { + m_current = data; + m_previous = data; + } + + public void Revert() + { + Vector3 aux = m_current; + m_current = m_previous; + m_previous = aux; + } + + + public Vector3 Current + { + get + { + return m_current; + } + + set + { + m_previous = m_current; + m_current = value; + } + } + + public override string ToString() + { + return m_current.ToString(); + } + } +} diff --git a/Assets/ThirdParty/AmplifyShaderEditor/Plugins/Editor/Native/FallbackVector3.cs.meta b/Assets/ThirdParty/AmplifyShaderEditor/Plugins/Editor/Native/FallbackVector3.cs.meta new file mode 100644 index 00000000..d22ae5bf --- /dev/null +++ b/Assets/ThirdParty/AmplifyShaderEditor/Plugins/Editor/Native/FallbackVector3.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0e681455d27d2264fbc2683a1510df2c +timeCreated: 1481126953 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/AmplifyShaderEditor/Plugins/Editor/Native/FallbackVector4.cs b/Assets/ThirdParty/AmplifyShaderEditor/Plugins/Editor/Native/FallbackVector4.cs new file mode 100644 index 00000000..63be6588 --- /dev/null +++ b/Assets/ThirdParty/AmplifyShaderEditor/Plugins/Editor/Native/FallbackVector4.cs @@ -0,0 +1,48 @@ +// Amplify Shader Editor - Visual Shader Editing Tool +// Copyright (c) Amplify Creations, Lda <info@amplify.pt> + +using System; +using UnityEngine; + +namespace AmplifyShaderEditor +{ + [Serializable] + public class FallbackVector4 : IFallbackVars + { + [SerializeField] + private Vector4 m_current; + [SerializeField] + private Vector4 m_previous; + + public FallbackVector4() + { + m_current = new Vector4( 0, 0, 0, 0 ); + m_previous = new Vector4( 0, 0, 0, 0 ); + } + + public FallbackVector4( Vector4 data ) + { + m_current = data; + m_previous = data; + } + + public void Revert() + { + Vector4 aux = m_current; + m_current = m_previous; + m_previous = aux; + } + + public Vector4 Current + { + get { return m_current; } + set + { + m_previous = m_current; + m_current = value; + } + } + + public override string ToString() { return m_current.ToString(); } + } +} diff --git a/Assets/ThirdParty/AmplifyShaderEditor/Plugins/Editor/Native/FallbackVector4.cs.meta b/Assets/ThirdParty/AmplifyShaderEditor/Plugins/Editor/Native/FallbackVector4.cs.meta new file mode 100644 index 00000000..704deb79 --- /dev/null +++ b/Assets/ThirdParty/AmplifyShaderEditor/Plugins/Editor/Native/FallbackVector4.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4e23c25f035ba604ea999f214c0a7833 +timeCreated: 1481126955 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/AmplifyShaderEditor/Plugins/Editor/Native/IFallbackVars.cs b/Assets/ThirdParty/AmplifyShaderEditor/Plugins/Editor/Native/IFallbackVars.cs new file mode 100644 index 00000000..17f7fcf0 --- /dev/null +++ b/Assets/ThirdParty/AmplifyShaderEditor/Plugins/Editor/Native/IFallbackVars.cs @@ -0,0 +1,10 @@ +// Amplify Shader Editor - Visual Shader Editing Tool +// Copyright (c) Amplify Creations, Lda <info@amplify.pt> + +namespace AmplifyShaderEditor +{ + interface IFallbackVars + { + void Revert(); + } +} diff --git a/Assets/ThirdParty/AmplifyShaderEditor/Plugins/Editor/Native/IFallbackVars.cs.meta b/Assets/ThirdParty/AmplifyShaderEditor/Plugins/Editor/Native/IFallbackVars.cs.meta new file mode 100644 index 00000000..f558f542 --- /dev/null +++ b/Assets/ThirdParty/AmplifyShaderEditor/Plugins/Editor/Native/IFallbackVars.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8b0dda023474c6e41a39c36e48af72b2 +timeCreated: 1481126957 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: |