You've already forked FateViewer
Add project files.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8c6dccc523e2ad440a82edd582b84a45
|
||||
timeCreated: 1481126957
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a957e66c7a41d6848966d526c9687347
|
||||
timeCreated: 1481126958
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 09c28ab321caf3b47839606e37d3cdd2
|
||||
timeCreated: 1481126953
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 48af68670bdba9147b4ed55138e4edf6
|
||||
timeCreated: 1481126955
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: cc2e25b7c55e9284699ccad75e79a075
|
||||
timeCreated: 1481126959
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 309e413cfa89510429c67fa82c557da7
|
||||
timeCreated: 1481126954
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ec850a4093c249d449f22e0483040b9c
|
||||
timeCreated: 1481126960
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ab3a976b3cb79ad41986d2f7d4439642
|
||||
timeCreated: 1481126958
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0e681455d27d2264fbc2683a1510df2c
|
||||
timeCreated: 1481126953
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -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(); }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4e23c25f035ba604ea999f214c0a7833
|
||||
timeCreated: 1481126955
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8b0dda023474c6e41a39c36e48af72b2
|
||||
timeCreated: 1481126957
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user