diff --git a/Assets/Plugins/Color picker/ColorPreview.cs b/Assets/Plugins/Color picker/ColorPreview.cs
index 85362b1a9..23ba9d425 100644
--- a/Assets/Plugins/Color picker/ColorPreview.cs
+++ b/Assets/Plugins/Color picker/ColorPreview.cs
@@ -2,7 +2,6 @@ using UnityEngine;
using UnityEngine.UI;
using TMPro;
-using Starpelly;
public class ColorPreview : MonoBehaviour
{
@@ -21,18 +20,18 @@ public class ColorPreview : MonoBehaviour
public void ChangeColor(Color c)
{
colorPicker.color = c;
- hex.text = c.Color2Hex();
+ hex.text = Color2Hex(c);
}
public void OnColorChanged(Color c)
{
previewGraphic.color = c;
- hex.text = c.Color2Hex();
+ hex.text = Color2Hex(c);
}
public void SetColorFromHex(string hex)
{
- colorPicker.color = Starpelly.Colors.Hex2RGB(hex);
+ colorPicker.color = Hex2RGB(hex);
}
private void OnDestroy()
@@ -45,4 +44,38 @@ public class ColorPreview : MonoBehaviour
{
SetColorFromHex(hex.text);
}
+
+ static string Color2Hex(Color color)
+ {
+ Color32 col = (Color32)color;
+ string hex = col.r.ToString("X2") + col.g.ToString("X2") + col.b.ToString("X2");
+ return hex;
+ }
+
+ ///
+ /// Converts a Hexadecimal Color to an RGB Color.
+ ///
+ static Color Hex2RGB(string hex)
+ {
+ if (hex is null or "") return Color.black;
+ try
+ {
+ hex = hex.Replace("0x", "");//in case the string is formatted 0xFFFFFF
+ hex = hex.Replace("#", "");//in case the string is formatted #FFFFFF
+ byte a = 255;//assume fully visible unless specified in hex
+ byte r = byte.Parse(hex.Substring(0, 2), System.Globalization.NumberStyles.HexNumber);
+ byte g = byte.Parse(hex.Substring(2, 2), System.Globalization.NumberStyles.HexNumber);
+ byte b = byte.Parse(hex.Substring(4, 2), System.Globalization.NumberStyles.HexNumber);
+ //Only use alpha if the string has enough characters
+ if (hex.Length >= 8)
+ {
+ a = byte.Parse(hex.Substring(6, 2), System.Globalization.NumberStyles.HexNumber);
+ }
+ return new Color32(r, g, b, a);
+ }
+ catch
+ {
+ return Color.black;
+ }
+ }
}
\ No newline at end of file
diff --git a/Assets/Plugins/Starpelly.meta b/Assets/Plugins/Starpelly.meta
deleted file mode 100644
index 2e5196fde..000000000
--- a/Assets/Plugins/Starpelly.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: cb987a8733a64924aa4c1bcbe27e6430
-folderAsset: yes
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Plugins/Starpelly/Anchors.cs b/Assets/Plugins/Starpelly/Anchors.cs
deleted file mode 100644
index ded5b1a15..000000000
--- a/Assets/Plugins/Starpelly/Anchors.cs
+++ /dev/null
@@ -1,115 +0,0 @@
-using UnityEngine;
-
-namespace Starpelly
-{
- public class Anchors
- {
- //------------Top-------------------
- public static void TopLeft(GameObject uiObject)
- {
- RectTransform uitransform = uiObject.GetComponent();
-
- uitransform.anchorMin = new Vector2(0, 1);
- uitransform.anchorMax = new Vector2(0, 1);
- uitransform.pivot = new Vector2(0, 1);
- }
-
- public static void TopMiddle(GameObject uiObject)
- {
- RectTransform uitransform = uiObject.GetComponent();
-
- uitransform.anchorMin = new Vector2(0.5f, 1);
- uitransform.anchorMax = new Vector2(0.5f, 1);
- uitransform.pivot = new Vector2(0.5f, 1);
- }
-
-
- public static void TopRight(GameObject uiObject)
- {
- RectTransform uitransform = uiObject.GetComponent();
-
- uitransform.anchorMin = new Vector2(1, 1);
- uitransform.anchorMax = new Vector2(1, 1);
- uitransform.pivot = new Vector2(1, 1);
- }
-
- //------------Middle-------------------
- public static void MiddleLeft(GameObject uiObject)
- {
- RectTransform uitransform = uiObject.GetComponent();
-
- uitransform.anchorMin = new Vector2(0, 0.5f);
- uitransform.anchorMax = new Vector2(0, 0.5f);
- uitransform.pivot = new Vector2(0, 0.5f);
- }
-
- public static void Mmiddle(GameObject uiObject)
- {
- RectTransform uitransform = uiObject.GetComponent();
-
- uitransform.anchorMin = new Vector2(0.5f, 0.5f);
- uitransform.anchorMax = new Vector2(0.5f, 0.5f);
- uitransform.pivot = new Vector2(0.5f, 0.5f);
- }
-
- public static void MiddleRight(GameObject uiObject)
- {
- RectTransform uitransform = uiObject.GetComponent();
-
- uitransform.anchorMin = new Vector2(1, 0.5f);
- uitransform.anchorMax = new Vector2(1, 0.5f);
- uitransform.pivot = new Vector2(1, 0.5f);
- }
-
- //------------Bottom-------------------
- public static void BottomLeft(GameObject uiObject)
- {
- RectTransform uitransform = uiObject.GetComponent();
-
- uitransform.anchorMin = new Vector2(0, 0);
- uitransform.anchorMax = new Vector2(0, 0);
- uitransform.pivot = new Vector2(0, 0);
- }
-
- public static void BottomMiddle(GameObject uiObject)
- {
- RectTransform uitransform = uiObject.GetComponent();
-
- uitransform.anchorMin = new Vector2(0.5f, 0);
- uitransform.anchorMax = new Vector2(0.5f, 0);
- uitransform.pivot = new Vector2(0.5f, 0);
- }
-
- public static void BottomRight(GameObject uiObject)
- {
- RectTransform uitransform = uiObject.GetComponent();
-
- uitransform.anchorMin = new Vector2(1, 0);
- uitransform.anchorMax = new Vector2(1, 0);
- uitransform.pivot = new Vector2(1, 0);
- }
- }
-
- public static class RectTransformExtensions
- {
- public static void SetLeft(this RectTransform rt, float left)
- {
- rt.offsetMin = new Vector2(left, rt.offsetMin.y);
- }
-
- public static void SetRight(this RectTransform rt, float right)
- {
- rt.offsetMax = new Vector2(-right, rt.offsetMax.y);
- }
-
- public static void SetTop(this RectTransform rt, float top)
- {
- rt.offsetMax = new Vector2(rt.offsetMax.x, -top);
- }
-
- public static void SetBottom(this RectTransform rt, float bottom)
- {
- rt.offsetMin = new Vector2(rt.offsetMin.x, bottom);
- }
- }
-}
\ No newline at end of file
diff --git a/Assets/Plugins/Starpelly/Anchors.cs.meta b/Assets/Plugins/Starpelly/Anchors.cs.meta
deleted file mode 100644
index e06bb7dd1..000000000
--- a/Assets/Plugins/Starpelly/Anchors.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 1d8c3539b2e2fb543b570b5d5e8cc79a
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Plugins/Starpelly/Colors.cs b/Assets/Plugins/Starpelly/Colors.cs
deleted file mode 100644
index 14af99a88..000000000
--- a/Assets/Plugins/Starpelly/Colors.cs
+++ /dev/null
@@ -1,41 +0,0 @@
-using UnityEngine;
-
-namespace Starpelly
-{
- public static class Colors
- {
- public static string Color2Hex(this Color color)
- {
- Color32 col = (Color32)color;
- string hex = col.r.ToString("X2") + col.g.ToString("X2") + col.b.ToString("X2");
- return hex;
- }
-
- ///
- /// Converts a Hexadecimal Color to an RGB Color.
- ///
- public static Color Hex2RGB(this string hex)
- {
- if (hex is null or "") return Color.black;
- try
- {
- hex = hex.Replace("0x", "");//in case the string is formatted 0xFFFFFF
- hex = hex.Replace("#", "");//in case the string is formatted #FFFFFF
- byte a = 255;//assume fully visible unless specified in hex
- byte r = byte.Parse(hex.Substring(0, 2), System.Globalization.NumberStyles.HexNumber);
- byte g = byte.Parse(hex.Substring(2, 2), System.Globalization.NumberStyles.HexNumber);
- byte b = byte.Parse(hex.Substring(4, 2), System.Globalization.NumberStyles.HexNumber);
- //Only use alpha if the string has enough characters
- if (hex.Length >= 8)
- {
- a = byte.Parse(hex.Substring(6, 2), System.Globalization.NumberStyles.HexNumber);
- }
- return new Color32(r, g, b, a);
- }
- catch
- {
- return Color.black;
- }
- }
- }
-}
diff --git a/Assets/Plugins/Starpelly/Colors.cs.meta b/Assets/Plugins/Starpelly/Colors.cs.meta
deleted file mode 100644
index 9dbffb021..000000000
--- a/Assets/Plugins/Starpelly/Colors.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 50a7b803bf8f71447b31651201c679bd
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Plugins/Starpelly/Common.cs b/Assets/Plugins/Starpelly/Common.cs
deleted file mode 100644
index 487160d98..000000000
--- a/Assets/Plugins/Starpelly/Common.cs
+++ /dev/null
@@ -1,13 +0,0 @@
-using System;
-using System.Runtime.InteropServices;
-using Starpelly.Enums.Windows;
-
-namespace Starpelly.Common
-{
- [StructLayout(LayoutKind.Sequential)]
- public struct POINT
- {
- public int x;
- public int y;
- }
-}
\ No newline at end of file
diff --git a/Assets/Plugins/Starpelly/Common.cs.meta b/Assets/Plugins/Starpelly/Common.cs.meta
deleted file mode 100644
index 5e4891e92..000000000
--- a/Assets/Plugins/Starpelly/Common.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 443faccde9dc53c488a2e5a987167620
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Plugins/Starpelly/Enums.meta b/Assets/Plugins/Starpelly/Enums.meta
deleted file mode 100644
index b3e6a4ac2..000000000
--- a/Assets/Plugins/Starpelly/Enums.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: af122b943aa4c9b42aff726e52d9ab65
-folderAsset: yes
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Plugins/Starpelly/Enums/StringType.cs b/Assets/Plugins/Starpelly/Enums/StringType.cs
deleted file mode 100644
index 5358958df..000000000
--- a/Assets/Plugins/Starpelly/Enums/StringType.cs
+++ /dev/null
@@ -1,34 +0,0 @@
-namespace Starpelly.Enums.Strings
-{
- public enum StringType : int
- {
- ///
- /// Both uppercase and lowercase letters in english.
- ///
- Alpha,
- ///
- /// All numbers ranging from 0-9
- ///
- Numeric,
- ///
- /// Both uppercase and lowercase letters with all numbers ranging from 0-9. (english)
- ///
- Alphanumeric,
- ///
- /// All uppercase letters in english.
- ///
- Uppercase,
- ///
- /// All lowercase letters in english.
- ///
- Lowercase,
- ///
- /// All punctuation marks on the QWERTY keyboard. (Also contains special keys)
- ///
- Punctuation,
- ///
- /// All of the above.
- ///
- ALL
- }
-}
\ No newline at end of file
diff --git a/Assets/Plugins/Starpelly/Enums/Windows.cs b/Assets/Plugins/Starpelly/Enums/Windows.cs
deleted file mode 100644
index 6d9de539d..000000000
--- a/Assets/Plugins/Starpelly/Enums/Windows.cs
+++ /dev/null
@@ -1,108 +0,0 @@
-using Starpelly.Common;
-using System;
-using System.Runtime.InteropServices;
-
-namespace Starpelly.Enums.Windows
-{
- public enum WindowsCursor : int
- {
- StandardArrowAndSmallHourglass = 32650,
- StandardArrow = 32512,
- Crosshair = 32515,
- Hand = 32649,
- ArrowAndQuestionMark = 32651,
- IBeam = 32513,
- ///
- /// Obsolete for applications marked version 4.0 or later.
- ///
- [System.Obsolete]
- Icon = 32641,
- SlashedCircle = 32648,
- ///
- /// Obsolete for applications marked version 4.0 or later. Use FourPointedArrowPointingNorthSouthEastAndWest
- ///
- [System.Obsolete]
- Size = 32640,
- FourPointedArrowPointingNorthSouthEastAndWest = 32646,
- DoublePointedArrowPointingNortheastAndSouthwest = 32643,
- DoublePointedArrowPointingNorthAndSouth = 32645,
- DoublePointedArrowPointingNorthwestAndSoutheast = 32642,
- DoublePointedArrowPointingWestAndEast = 32644,
- VerticalArrow = 32516,
- Hourglass = 32514
- }
-
- [Flags]
- public enum SendInputEventType : uint
- {
- InputMouse,
- InputKeyboard,
- InputHardware
- }
-
- [StructLayout(LayoutKind.Sequential)]
- public struct MOUSEINPUT
- {
- public int dx;
- public int dy;
- public uint mouseData;
- public MouseEventFlags dwFlags;
- public uint time;
- public IntPtr dwExtraInfo;
- }
-
- [StructLayout(LayoutKind.Sequential)]
- public struct KEYBOARDINPUT
- {
- public ushort wVk;
- public ushort wScan;
- public uint dwFlags;
- public uint time;
- public IntPtr dwExtraInfo;
- }
-
- [StructLayout(LayoutKind.Sequential)]
- public struct HARDWAREINPUT
- {
- public int uMsg;
- public short wParamL;
- public short wParamH;
- }
-
- [StructLayout(LayoutKind.Explicit)]
- public struct MOUSEANDKEYBOARDINPUT
- {
- [FieldOffset(0)]
- public MOUSEINPUT mi;
-
- [FieldOffset(0)]
- public KEYBOARDINPUT ki;
-
- [FieldOffset(0)]
- public HARDWAREINPUT hi;
- }
-
- [Flags]
- public enum MouseEventFlags : uint
- {
- MOUSEEVENT_MOVE = 0x0001,
- MOUSEEVENT_LEFTDOWN = 0x0002,
- MOUSEEVENT_LEFTUP = 0x0004,
- MOUSEEVENT_RIGHTDOWN = 0x0008,
- MOUSEEVENT_RIGHTUP = 0x0010,
- MOUSEEVENT_MIDDLEDOWN = 0x0020,
- MOUSEEVENT_MIDDLEUP = 0x0040,
- MOUSEEVENT_XDOWN = 0x0080,
- MOUSEEVENT_XUP = 0x0100,
- MOUSEEVENT_WHEEL = 0x0800,
- MOUSEEVENT_VIRTUALDESK = 0x4000,
- MOUSEEVENT_ABSOLUTE = 0x8000
- }
-
- [StructLayout(LayoutKind.Sequential)]
- public struct INPUT
- {
- public SendInputEventType type;
- public MOUSEANDKEYBOARDINPUT mkhi;
- }
-}
\ No newline at end of file
diff --git a/Assets/Plugins/Starpelly/Enums/Windows.cs.meta b/Assets/Plugins/Starpelly/Enums/Windows.cs.meta
deleted file mode 100644
index f466de12f..000000000
--- a/Assets/Plugins/Starpelly/Enums/Windows.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 9aa3c38600fe0124ea40791c379eb5d0
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Plugins/Starpelly/Extensions.cs b/Assets/Plugins/Starpelly/Extensions.cs
deleted file mode 100644
index bee2c9304..000000000
--- a/Assets/Plugins/Starpelly/Extensions.cs
+++ /dev/null
@@ -1,18 +0,0 @@
-using System;
-using System.IO;
-using System.Runtime.Serialization.Formatters.Binary;
-
-public static class Extensions
-{
- public static T DeepClone(this T obj)
- {
- using (MemoryStream stream = new MemoryStream())
- {
- BinaryFormatter formatter = new BinaryFormatter();
- formatter.Serialize(stream, obj);
- stream.Position = 0;
-
- return (T)formatter.Deserialize(stream);
- }
- }
-}
\ No newline at end of file
diff --git a/Assets/Plugins/Starpelly/Extensions.cs.meta b/Assets/Plugins/Starpelly/Extensions.cs.meta
deleted file mode 100644
index 01c4d9a04..000000000
--- a/Assets/Plugins/Starpelly/Extensions.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 98be75cbdf7662d43bf84e7f1ac7d58e
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Plugins/Starpelly/Math.cs b/Assets/Plugins/Starpelly/Math.cs
deleted file mode 100644
index 586d5c847..000000000
--- a/Assets/Plugins/Starpelly/Math.cs
+++ /dev/null
@@ -1,93 +0,0 @@
-using System.Collections.Generic;
-using System.Linq;
-using UnityEngine;
-
-namespace Starpelly
-{
- public static class Mathp
- {
- ///
- /// Rounds float to nearest interval.
- ///
- public static float Round2Nearest(float a, float interval)
- {
- return a = a - (a % interval);
- }
-
- ///
- /// Gets the difference between two floats.
- ///
- public static float Difference(float num1, float num2)
- {
- float cout;
- cout = Mathf.Max(num2, num1) - Mathf.Min(num1, num2);
- return cout;
- }
-
- ///
- /// Returns the closest value in a list compared to value given.
- ///
- public static float GetClosestInList(List list, float compareTo)
- {
- if (list.Count > 0)
- return list.Aggregate((x, y) => Mathf.Abs(x - compareTo) < Mathf.Abs(y - compareTo) ? x : y);
- else
- return -40;
- }
-
- ///
- /// Get the numbers after a decimal.
- ///
- public static float GetDecimalFromFloat(float number)
- {
- return number % 1; // this is simple as fuck, but i'm dumb and forget this all the time
- }
-
- ///
- /// Converts two numbers to a range of 0 - 1
- ///
- /// The input value.
- /// The min input.
- /// The max input.
- public static float Normalize(float val, float min, float max)
- {
- return (val - min) / (max - min);
- }
-
- ///
- /// Converts a normalized value to a normal float.
- ///
- /// The normalized value.
- /// The min input.
- /// The max input.
- public static float DeNormalize(float val, float min, float max)
- {
- return (val * (max - min) + min);
- }
-
- ///
- /// Returns true if a value is within a certain range.
- ///
- public static bool IsWithin(this float val, float min, float max)
- {
- return val >= min && val <= max;
- }
-
- ///
- /// Returns true if a value is within a certain range.
- ///
- public static bool IsWithin(this Vector2 val, Vector2 min, Vector2 max)
- {
- return val.x.IsWithin(min.x, max.x) && val.y.IsWithin(min.y, max.y);
- }
-
- ///
- /// Returns true if value is between two numbers.
- ///
- public static bool IsBetween(this T item, T start, T end)
- {
- return Comparer.Default.Compare(item, start) >= 0
- && Comparer.Default.Compare(item, end) <= 0;
- }
- }
-}
diff --git a/Assets/Plugins/Starpelly/Math.cs.meta b/Assets/Plugins/Starpelly/Math.cs.meta
deleted file mode 100644
index a5519d008..000000000
--- a/Assets/Plugins/Starpelly/Math.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 09ae937b4a8b92d4386ba5172d1ad67f
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Plugins/Starpelly/OS.cs b/Assets/Plugins/Starpelly/OS.cs
deleted file mode 100644
index a336e597f..000000000
--- a/Assets/Plugins/Starpelly/OS.cs
+++ /dev/null
@@ -1,23 +0,0 @@
-namespace Starpelly
-{
- public static class OS
- {
- private static readonly OperatingSystem.IOperatingSystem _os;
-
- static OS()
- {
-#if UNITY_STANDALONE_WIN || UNITY_EDITOR_WIN
- _os = new OperatingSystem.Windows();
-#elif UNITY_STANDALONE_LINUX || UNITY_EDITOR_LINUX
- _os = new OperatingSystem.Linux();
-#elif UNITY_STANDALONE_OSX || UNITY_EDITOR_OSX
- _os = new OperatingSystem.MacOS();
-#endif
- }
-
- public static void ChangeWindowTitle(string newTitle)
- {
- _os.ChangeWindowTitle(newTitle);
- }
- }
-}
diff --git a/Assets/Plugins/Starpelly/OS.cs.meta b/Assets/Plugins/Starpelly/OS.cs.meta
deleted file mode 100644
index 3c948c911..000000000
--- a/Assets/Plugins/Starpelly/OS.cs.meta
+++ /dev/null
@@ -1,3 +0,0 @@
-fileFormatVersion: 2
-guid: 36edcede4a1a4ef9bb0902354c3be0d1
-timeCreated: 1655775758
\ No newline at end of file
diff --git a/Assets/Plugins/Starpelly/OperatingSystem.meta b/Assets/Plugins/Starpelly/OperatingSystem.meta
deleted file mode 100644
index 3bb2626e3..000000000
--- a/Assets/Plugins/Starpelly/OperatingSystem.meta
+++ /dev/null
@@ -1,3 +0,0 @@
-fileFormatVersion: 2
-guid: 7b17a1aeeb0f43bb805dc7ac03408ebb
-timeCreated: 1655775758
\ No newline at end of file
diff --git a/Assets/Plugins/Starpelly/OperatingSystem/IOperatingSystem.cs b/Assets/Plugins/Starpelly/OperatingSystem/IOperatingSystem.cs
deleted file mode 100644
index f7180f8a9..000000000
--- a/Assets/Plugins/Starpelly/OperatingSystem/IOperatingSystem.cs
+++ /dev/null
@@ -1,7 +0,0 @@
-namespace Starpelly.OperatingSystem
-{
- public interface IOperatingSystem
- {
- public void ChangeWindowTitle(string newTitle);
- }
-}
diff --git a/Assets/Plugins/Starpelly/OperatingSystem/IOperatingSystem.cs.meta b/Assets/Plugins/Starpelly/OperatingSystem/IOperatingSystem.cs.meta
deleted file mode 100644
index 58e8fa7dc..000000000
--- a/Assets/Plugins/Starpelly/OperatingSystem/IOperatingSystem.cs.meta
+++ /dev/null
@@ -1,3 +0,0 @@
-fileFormatVersion: 2
-guid: 8bb82376a44e4330b6398deddb17d282
-timeCreated: 1655775758
\ No newline at end of file
diff --git a/Assets/Plugins/Starpelly/OperatingSystem/Linux.cs b/Assets/Plugins/Starpelly/OperatingSystem/Linux.cs
deleted file mode 100644
index 7cd68af5b..000000000
--- a/Assets/Plugins/Starpelly/OperatingSystem/Linux.cs
+++ /dev/null
@@ -1,16 +0,0 @@
-#if UNITY_EDITOR_LINUX || UNITY_STANDALONE_LINUX
-using System.Diagnostics;
-
-namespace Starpelly.OperatingSystem
-{
- public class Linux : IOperatingSystem
- {
- public void ChangeWindowTitle(string newTitle)
- {
- var pid = Process.GetCurrentProcess().Id;
- var args = $"search --all --pid {pid} --class '.' set_window --name \"{newTitle}\"";
- Process.Start("xdotool", args);
- }
- }
-}
-#endif
diff --git a/Assets/Plugins/Starpelly/OperatingSystem/Linux.cs.meta b/Assets/Plugins/Starpelly/OperatingSystem/Linux.cs.meta
deleted file mode 100644
index e5ebf2b80..000000000
--- a/Assets/Plugins/Starpelly/OperatingSystem/Linux.cs.meta
+++ /dev/null
@@ -1,3 +0,0 @@
-fileFormatVersion: 2
-guid: 9e5d25ae0c3e4256abae4d2e07f7e14b
-timeCreated: 1655775758
\ No newline at end of file
diff --git a/Assets/Plugins/Starpelly/OperatingSystem/MacOS.cs b/Assets/Plugins/Starpelly/OperatingSystem/MacOS.cs
deleted file mode 100644
index f752ea67d..000000000
--- a/Assets/Plugins/Starpelly/OperatingSystem/MacOS.cs
+++ /dev/null
@@ -1,10 +0,0 @@
-namespace Starpelly.OperatingSystem
-{
- public class MacOS : IOperatingSystem
- {
- public void ChangeWindowTitle(string newTitle)
- {
- throw new System.NotImplementedException();
- }
- }
-}
diff --git a/Assets/Plugins/Starpelly/OperatingSystem/MacOS.cs.meta b/Assets/Plugins/Starpelly/OperatingSystem/MacOS.cs.meta
deleted file mode 100644
index ec5f65ad4..000000000
--- a/Assets/Plugins/Starpelly/OperatingSystem/MacOS.cs.meta
+++ /dev/null
@@ -1,3 +0,0 @@
-fileFormatVersion: 2
-guid: cfc6152d5db74f568b229047970f7889
-timeCreated: 1655775758
\ No newline at end of file
diff --git a/Assets/Plugins/Starpelly/OperatingSystem/User32.cs b/Assets/Plugins/Starpelly/OperatingSystem/User32.cs
deleted file mode 100644
index aff18792b..000000000
--- a/Assets/Plugins/Starpelly/OperatingSystem/User32.cs
+++ /dev/null
@@ -1,58 +0,0 @@
-#if UNITY_STANDALONE_WIN || UNITY_EDITOR_WIN
-using System;
-using System.Runtime.InteropServices;
-using System.Text;
-
-using Starpelly.Common;
-using Starpelly.Enums.Windows;
-
-namespace Starpelly.OperatingSystem
-{
- public class User32
- {
- #region Input
- [DllImport("user32.dll", EntryPoint = "SetCursor")]
- public static extern IntPtr SetCursor(IntPtr hCursor);
-
- [DllImport("user32.dll", EntryPoint = "LoadCursor")]
- public static extern IntPtr LoadCursor(IntPtr hInstance, int lpCursorName);
-
- [DllImport("user32.dll", SetLastError = true)]
- public static extern uint SendInput(uint numberOfInputs, INPUT[] inputs, int sizeOfInputStructure);
-
- [DllImport("user32.dll")]
- public static extern long SetCursorPos(int x, int y);
-
- [DllImport("user32.dll")]
- public static extern bool ClientToScreen(IntPtr hWnd, ref POINT point);
-
- [DllImport("user32.dll")]
- [return: MarshalAs(UnmanagedType.Bool)]
- public static extern bool GetCursorPos(out POINT p);
-
- [DllImport("user32.dll", SetLastError = true)]
- public static extern uint SendInput(uint nInputs, ref INPUT pInputs, int cbSize);
-
- [DllImport("user32.dll")]
- public static extern IntPtr GetDesktopWindow();
-
- [DllImport("user32.dll")]
- public static extern IntPtr GetWindowDC(IntPtr ptr);
- #endregion
-
- #region Window
- [DllImport("user32.dll", EntryPoint = "SetWindowText")]
- public static extern bool SetWindowText(IntPtr hwnd, String lpString);
-
- [DllImport("user32.dll", EntryPoint = "FindWindow")]
- public static extern IntPtr FindWindow(String className, String windowName);
-
- [DllImport("user32.dll")]
- public static extern int GetWindowText(IntPtr hWnd, StringBuilder text, int count);
-
- [DllImport("user32.dll")]
- public static extern IntPtr GetForegroundWindow();
- #endregion
- }
-}
-#endif
diff --git a/Assets/Plugins/Starpelly/OperatingSystem/User32.cs.meta b/Assets/Plugins/Starpelly/OperatingSystem/User32.cs.meta
deleted file mode 100644
index 0555eac38..000000000
--- a/Assets/Plugins/Starpelly/OperatingSystem/User32.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: eaea5ea9d5c881b4cb40464086c3a1da
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Plugins/Starpelly/OperatingSystem/Windows.cs b/Assets/Plugins/Starpelly/OperatingSystem/Windows.cs
deleted file mode 100644
index 715f64514..000000000
--- a/Assets/Plugins/Starpelly/OperatingSystem/Windows.cs
+++ /dev/null
@@ -1,141 +0,0 @@
-#if UNITY_STANDALONE_WIN || UNITY_EDITOR_WIN
-using System;
-using System.Runtime.InteropServices;
-
-using Starpelly.Enums.Windows;
-using System.Text;
-
-namespace Starpelly.OperatingSystem
-{
- public class Windows : IOperatingSystem
- {
- ///
- /// Gets the current title of the game window.
- ///
- /// The current title the window is, will probably only be used for changing the window in ChangeWindowTitle()
- private static string GetActiveWindowTitle()
- {
- const int nChars = 256;
- StringBuilder Buff = new StringBuilder(nChars);
- IntPtr handle = User32.GetForegroundWindow();
-
- if (User32.GetWindowText(handle, Buff, nChars) > 0)
- {
- return Buff.ToString();
- }
- return null;
- }
-
- ///
- /// Changes the game's window title.
- ///
- /// The title the window will be changed to.
- public void ChangeWindowTitle(string newTitle)
- {
- var windowPtr = User32.FindWindow(null, GetActiveWindowTitle());
- User32.SetWindowText(windowPtr, newTitle);
- }
-
- #region Input
-
- ///
- /// Simulates a real key press passed in.
- ///
- public static void KeyPress(KeyCodeWin keyCode)
- {
- INPUT input = new INPUT
- {
- type = SendInputEventType.InputKeyboard,
- mkhi = new MOUSEANDKEYBOARDINPUT
- {
- ki = new KEYBOARDINPUT
- {
- wVk = (ushort)keyCode,
- wScan = 0,
- dwFlags = 0, // if nothing, key down
- time = 0,
- dwExtraInfo = IntPtr.Zero,
- }
- }
- };
-
- INPUT input2 = new INPUT
- {
- type = SendInputEventType.InputKeyboard,
- mkhi = new MOUSEANDKEYBOARDINPUT
- {
- ki = new KEYBOARDINPUT
- {
- wVk = (ushort)keyCode,
- wScan = 0,
- dwFlags = 2, // key up
- time = 0,
- dwExtraInfo = IntPtr.Zero,
- }
- }
- };
-
- INPUT[] inputs = new INPUT[] { input, input2 }; // Combined, it's a keystroke
- User32.SendInput((uint)inputs.Length, inputs, Marshal.SizeOf(typeof(INPUT)));
- }
-
-
- ///
- /// Sets your mouse pointer.
- ///
- public static void ChangeCursor(WindowsCursor cursor)
- {
- User32.SetCursor(User32.LoadCursor(IntPtr.Zero, (int)cursor));
- }
-
- ///
- /// Immediately clicks the left mouse button.
- ///
- public static void ClickLeftMouseButton()
- {
- INPUT mouseDownInput = new INPUT();
- mouseDownInput.type = SendInputEventType.InputMouse;
- mouseDownInput.mkhi.mi.dwFlags = MouseEventFlags.MOUSEEVENT_LEFTDOWN;
- User32.SendInput(1, ref mouseDownInput, Marshal.SizeOf(new INPUT()));
-
- INPUT mouseUpInput = new INPUT();
- mouseUpInput.type = SendInputEventType.InputMouse;
- mouseUpInput.mkhi.mi.dwFlags = MouseEventFlags.MOUSEEVENT_LEFTUP;
- User32.SendInput(1, ref mouseUpInput, Marshal.SizeOf(new INPUT()));
- }
-
- ///
- /// Immediately clicks the right mouse button.
- ///
- public static void ClickRightMouseButton()
- {
- INPUT mouseDownInput = new INPUT();
- mouseDownInput.type = SendInputEventType.InputMouse;
- mouseDownInput.mkhi.mi.dwFlags = MouseEventFlags.MOUSEEVENT_RIGHTDOWN;
- User32.SendInput(1, ref mouseDownInput, Marshal.SizeOf(new INPUT()));
-
- INPUT mouseUpInput = new INPUT();
- mouseUpInput.type = SendInputEventType.InputMouse;
- mouseUpInput.mkhi.mi.dwFlags = MouseEventFlags.MOUSEEVENT_RIGHTUP;
- User32.SendInput(1, ref mouseUpInput, Marshal.SizeOf(new INPUT()));
- }
-
- ///
- /// Moves your cursor in the x and y params implemented, plus the current mouse pos.
- ///
- /// Direction X
- /// Direction Y
- public static void MouseMove(int dx, int dy)
- {
- INPUT mouseMove = new INPUT();
- mouseMove.type = SendInputEventType.InputMouse;
- mouseMove.mkhi.mi.dwFlags = MouseEventFlags.MOUSEEVENT_MOVE;
- mouseMove.mkhi.mi.dx = dx;
- mouseMove.mkhi.mi.dy = dy;
- User32.SendInput(1, ref mouseMove, Marshal.SizeOf(new INPUT()));
- }
- #endregion
-
- }
-}
-#endif
diff --git a/Assets/Plugins/Starpelly/OperatingSystem/Windows.cs.meta b/Assets/Plugins/Starpelly/OperatingSystem/Windows.cs.meta
deleted file mode 100644
index 219ff4824..000000000
--- a/Assets/Plugins/Starpelly/OperatingSystem/Windows.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: ad72bc489623a464780ec0ff75fe7d70
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Plugins/Starpelly/Pelly.cs b/Assets/Plugins/Starpelly/Pelly.cs
deleted file mode 100644
index 310be1418..000000000
--- a/Assets/Plugins/Starpelly/Pelly.cs
+++ /dev/null
@@ -1,167 +0,0 @@
-namespace Pelly
-{
- public enum KeyCodeWin : ushort
- {
- #region Media
- MEDIA_NEXT_TRACK = 0xb0,
- MEDIA_PREV_TRACK = 0xb1,
- MEDIA_STOP = 0xb2,
- MEDIA_PLAY_PAUSE = 0xb3,
- #endregion
-
- #region Math Functions
- MULTIPLY = 0x6a, // '*'
- ADD = 0x6b,
- SUBTRACT = 0x6d,
- DIVIDE = 0x6f,
- #endregion
-
- #region Browser
- BROWSER_BACK = 0xa6,
- BROWSER_FORWARD = 0xa7,
- BROWSER_REFRESH = 0xa8,
- BROWSER_STOP = 0xa9,
- BROWSER_SEARCH = 0xaa,
- BROWSER_FAVORITES = 0xab,
- BROWSER_HOME = 0xac,
- #endregion
-
- #region Numpad numbers
- NUMPAD0 = 0x60,
- NUMPAD1 = 0x61,
- NUMPAD2 = 0x62,
- NUMPAD3 = 0x63,
- NUMPAD4 = 0x64, // 100
- NUMPAD5 = 0x65,
- NUMPAD6 = 0x66,
- NUMPAD7 = 0x67,
- NUMPAD8 = 0x68,
- NUMPAD9 = 0x69,
- #endregion
-
- #region Function Keys
- F1 = 0x70,
- F2 = 0x71,
- F3 = 0x72,
- F4 = 0x73,
- F5 = 0x74,
- F6 = 0x75,
- F7 = 0x76,
- F8 = 0x77,
- F9 = 0x78,
- F10 = 0x79,
- F11 = 0x7a,
- F12 = 0x7b,
- F13 = 0x7c,
- F14 = 0x7d,
- F15 = 0x7e,
- F16 = 0x7f,
- F17 = 0x80,
- F18 = 0x81,
- F19 = 130,
- F20 = 0x83,
- F21 = 0x84,
- F22 = 0x85,
- F23 = 0x86,
- F24 = 0x87,
- #endregion
-
- #region Other
- // see https://lists.w3.org/Archives/Public/www-dom/2010JulSep/att-0182/keyCode-spec.html
- OEM_COLON = 0xba, // OEM_1
- OEM_102 = 0xe2,
- OEM_2 = 0xbf,
- OEM_3 = 0xc0,
- OEM_4 = 0xdb,
- OEM_BACK_SLASH = 0xdc, // OEM_5
- OEM_6 = 0xdd,
- OEM_7 = 0xde,
- OEM_8 = 0xdf,
- OEM_CLEAR = 0xfe,
- OEM_COMMA = 0xbc,
- OEM_MINUS = 0xbd, // Underscore
- OEM_PERIOD = 0xbe,
- OEM_PLUS = 0xbb,
- #endregion
-
- #region KEYS
- KEY_0 = 0x30,
- KEY_1 = 0x31,
- KEY_2 = 0x32,
- KEY_3 = 0x33,
- KEY_4 = 0x34,
- KEY_5 = 0x35,
- KEY_6 = 0x36,
- KEY_7 = 0x37,
- KEY_8 = 0x38,
- KEY_9 = 0x39,
- KEY_A = 0x41,
- KEY_B = 0x42,
- KEY_C = 0x43,
- KEY_D = 0x44,
- KEY_E = 0x45,
- KEY_F = 0x46,
- KEY_G = 0x47,
- KEY_H = 0x48,
- KEY_I = 0x49,
- KEY_J = 0x4a,
- KEY_K = 0x4b,
- KEY_L = 0x4c,
- KEY_M = 0x4d,
- KEY_N = 0x4e,
- KEY_O = 0x4f,
- KEY_P = 0x50,
- KEY_Q = 0x51,
- KEY_R = 0x52,
- KEY_S = 0x53,
- KEY_T = 0x54,
- KEY_U = 0x55,
- KEY_V = 0x56,
- KEY_W = 0x57,
- KEY_X = 0x58,
- KEY_Y = 0x59,
- KEY_Z = 0x5a,
- #endregion
-
- #region volume
- VOLUME_MUTE = 0xad,
- VOLUME_DOWN = 0xae,
- VOLUME_UP = 0xaf,
- #endregion
-
- SNAPSHOT = 0x2c,
- RIGHT_CLICK = 0x5d,
- BACKSPACE = 8,
- CANCEL = 3,
- CAPS_LOCK = 20,
- CONTROL = 0x11,
- ALT = 18,
- DECIMAL = 110,
- DELETE = 0x2e,
- DOWN = 40,
- END = 0x23,
- ESC = 0x1b,
- HOME = 0x24,
- INSERT = 0x2d,
- LAUNCH_APP1 = 0xb6,
- LAUNCH_APP2 = 0xb7,
- LAUNCH_MAIL = 180,
- LAUNCH_MEDIA_SELECT = 0xb5,
- LCONTROL = 0xa2,
- LEFT = 0x25,
- LSHIFT = 0xa0,
- LWIN = 0x5b,
- PAGEDOWN = 0x22,
- NUMLOCK = 0x90,
- PAGE_UP = 0x21,
- RCONTROL = 0xa3,
- ENTER = 13,
- RIGHT = 0x27,
- RSHIFT = 0xa1,
- RWIN = 0x5c,
- SHIFT = 0x10,
- SPACE_BAR = 0x20,
- TAB = 9,
- UP = 0x26,
- }
-}
\ No newline at end of file
diff --git a/Assets/Plugins/Starpelly/Pelly.cs.meta b/Assets/Plugins/Starpelly/Pelly.cs.meta
deleted file mode 100644
index 5c7ba39ee..000000000
--- a/Assets/Plugins/Starpelly/Pelly.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 270c0104ad1fee346ac2cd6cdc617329
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Plugins/Starpelly/Properties.meta b/Assets/Plugins/Starpelly/Properties.meta
deleted file mode 100644
index 23d3cccbd..000000000
--- a/Assets/Plugins/Starpelly/Properties.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: 20020e40c9650d34a938ffef9aa986cf
-folderAsset: yes
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Plugins/Starpelly/Properties/Arrays.cs b/Assets/Plugins/Starpelly/Properties/Arrays.cs
deleted file mode 100644
index 050a24ab2..000000000
--- a/Assets/Plugins/Starpelly/Properties/Arrays.cs
+++ /dev/null
@@ -1,13 +0,0 @@
-using System;
-
-namespace Starpelly.Properties
-{
- public static class Arrays
- {
- public static void Push(ref T[] table, object value)
- {
- Array.Resize(ref table, table.Length + 1);
- table.SetValue(value, table.Length - 1);
- }
- }
-}
\ No newline at end of file
diff --git a/Assets/Plugins/Starpelly/Properties/Arrays.cs.meta b/Assets/Plugins/Starpelly/Properties/Arrays.cs.meta
deleted file mode 100644
index 4da1873ef..000000000
--- a/Assets/Plugins/Starpelly/Properties/Arrays.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: f44e2d87a27b15847b56b14db8a25730
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Plugins/Starpelly/Properties/Strings.cs b/Assets/Plugins/Starpelly/Properties/Strings.cs
deleted file mode 100644
index f0e0d71d7..000000000
--- a/Assets/Plugins/Starpelly/Properties/Strings.cs
+++ /dev/null
@@ -1,56 +0,0 @@
-using Starpelly.Enums.Strings;
-
-namespace Starpelly.Properties
-{
- public class Strings
- {
- ///
- /// Chooses a string based on the StringType chosen.
- ///
- /// The string type eg. (uppercase, lowercase, numeric)
- /// A list of chars because enums don't support strings. :(
- public static string Chars(StringType stringType)
- {
- const string alpha = @"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
- const string numeric = @"0123456789";
- const string alphanumeric = @"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
- const string uppercase = @"ABCDEFGHIJKLMNOPQRSTUVWXYZ";
- const string lowercase = @"abcdefghijklmnopqrstuvwxyz";
- const string punctuation = @"!@#$%^&*()_+{}:|<>?/.,;'\[]-=`~ ";
- const string all = @"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*()_+{}:|<>?/.,;'\[]-=`~ ";
-
- string returnString;
-
- // I wish C# had the ability to use strings with enums
- switch (stringType)
- {
- case StringType.Alpha:
- returnString = alpha;
- break;
- case StringType.Numeric:
- returnString = numeric;
- break;
- case StringType.Alphanumeric:
- returnString = alphanumeric;
- break;
- case StringType.Uppercase:
- returnString = uppercase;
- break;
- case StringType.Lowercase:
- returnString = lowercase;
- break;
- case StringType.Punctuation:
- returnString = punctuation;
- break;
- case StringType.ALL:
- returnString = all;
- break;
- default:
- returnString = all;
- break;
- }
-
- return returnString;
- }
- }
-}
diff --git a/Assets/Plugins/Starpelly/Properties/Strings.cs.meta b/Assets/Plugins/Starpelly/Properties/Strings.cs.meta
deleted file mode 100644
index cf8ce7bff..000000000
--- a/Assets/Plugins/Starpelly/Properties/Strings.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: bbc057365bf984546b564868d853a53a
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Plugins/Starpelly/README.md b/Assets/Plugins/Starpelly/README.md
deleted file mode 100644
index ceabaa3cc..000000000
--- a/Assets/Plugins/Starpelly/README.md
+++ /dev/null
@@ -1,30 +0,0 @@
-# Starpelly
-Tools for Unity
-
-Simulates the "A" key press every 0.6 seconds:
-```cs
-using UnityEngine;
-
-using Starpelly.OS;
-
-public class test : MonoBehaviour
-{
- private float action = 0.0f;
- private float period = 0.6f;
-
- private void Start()
- {
- Application.runInBackground = true;
- }
-
- private void Update()
- {
- if (Time.time > action)
- {
- action += period;
- Windows.KeyPress(Starpelly.KeyCodeWin.KEY_A);
- }
- }
-}
-
-```
diff --git a/Assets/Plugins/Starpelly/README.md.meta b/Assets/Plugins/Starpelly/README.md.meta
deleted file mode 100644
index 044ebd4b8..000000000
--- a/Assets/Plugins/Starpelly/README.md.meta
+++ /dev/null
@@ -1,7 +0,0 @@
-fileFormatVersion: 2
-guid: 420b909aa281dcb478854d7bbba95ebf
-TextScriptImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Plugins/Starpelly/Random.cs b/Assets/Plugins/Starpelly/Random.cs
deleted file mode 100644
index 72c455887..000000000
--- a/Assets/Plugins/Starpelly/Random.cs
+++ /dev/null
@@ -1,25 +0,0 @@
-using System.Linq;
-
-using Starpelly.Enums.Strings;
-
-namespace Starpelly.Random
-{
- public class Strings
- {
- private static System.Random random = new System.Random();
-
- ///
- /// Function used to get a random string using the StringType and length provided.
- ///
- /// The string type. e.g, (uppercase, lowercase, numeric)
- /// The length you want the string to be.
- /// A random string of characters in a random order.
- public static string RandomString(StringType stringType, int length)
- {
- string chars = Properties.Strings.Chars(stringType);
-
- return new string(Enumerable.Repeat(chars, length)
- .Select(s => s[random.Next(s.Length)]).ToArray());
- }
- }
-}
\ No newline at end of file
diff --git a/Assets/Plugins/Starpelly/Random.cs.meta b/Assets/Plugins/Starpelly/Random.cs.meta
deleted file mode 100644
index 628ce0f4d..000000000
--- a/Assets/Plugins/Starpelly/Random.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 2c01318b4f5f869499a36b5d80319b47
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Plugins/Starpelly/RendererExtensions.cs b/Assets/Plugins/Starpelly/RendererExtensions.cs
deleted file mode 100644
index 964a2b68a..000000000
--- a/Assets/Plugins/Starpelly/RendererExtensions.cs
+++ /dev/null
@@ -1,62 +0,0 @@
-using UnityEngine;
-
-public static class RendererExtensions
-{
- ///
- /// Counts the bounding box corners of the given RectTransform that are visible from the given Camera in screen space.
- ///
- /// The amount of bounding box corners that are visible from the Camera.
- /// Rect transform.
- /// Camera.
- private static int CountCornersVisibleFrom(this RectTransform rectTransform, Camera camera)
- {
- Rect screenBounds = new Rect(0f, 0f, Screen.width, Screen.height); // Screen space bounds (assumes camera renders across the entire screen)
- Vector3[] objectCorners = new Vector3[4];
- rectTransform.GetWorldCorners(objectCorners);
-
- int visibleCorners = 0;
- Vector3 tempScreenSpaceCorner; // Cached
- for (var i = 0; i < objectCorners.Length; i++) // For each corner in rectTransform
- {
- tempScreenSpaceCorner = camera.WorldToScreenPoint(objectCorners[i]); // Transform world space position of corner to screen space
- if (screenBounds.Contains(tempScreenSpaceCorner)) // If the corner is inside the screen
- {
- visibleCorners++;
- }
- }
- return visibleCorners;
- }
-
- ///
- /// Determines if this RectTransform is fully visible from the specified camera.
- /// Works by checking if each bounding box corner of this RectTransform is inside the cameras screen space view frustrum.
- ///
- /// true if is fully visible from the specified camera; otherwise, false.
- /// Rect transform.
- /// Camera.
- public static bool IsFullyVisibleFrom(this RectTransform rectTransform, Camera camera)
- {
- return CountCornersVisibleFrom(rectTransform, camera) == 4; // True if all 4 corners are visible
- }
-
- ///
- /// Determines if this RectTransform is at least partially visible from the specified camera.
- /// Works by checking if any bounding box corner of this RectTransform is inside the cameras screen space view frustrum.
- ///
- /// true if is at least partially visible from the specified camera; otherwise, false.
- /// Rect transform.
- /// Camera.
- public static bool IsVisibleFrom(this RectTransform rectTransform, Camera camera)
- {
- return CountCornersVisibleFrom(rectTransform, camera) > 0; // True if any corners are visible
- }
-
- public static bool MouseIsWithin(this RectTransform rectTransform)
- {
- var normalizedMousePosition = new Vector2(Input.mousePosition.x / Screen.width, Input.mousePosition.y / Screen.height);
- return normalizedMousePosition.x > rectTransform.anchorMin.x &&
- normalizedMousePosition.x < rectTransform.anchorMax.x &&
- normalizedMousePosition.y > rectTransform.anchorMin.y &&
- normalizedMousePosition.y < rectTransform.anchorMax.y;
- }
-}
\ No newline at end of file
diff --git a/Assets/Plugins/Starpelly/RendererExtensions.cs.meta b/Assets/Plugins/Starpelly/RendererExtensions.cs.meta
deleted file mode 100644
index 79cfad1f0..000000000
--- a/Assets/Plugins/Starpelly/RendererExtensions.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: e8273052806a5334cbf581670753ee77
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Plugins/Starpelly/ScreenUtility.cs b/Assets/Plugins/Starpelly/ScreenUtility.cs
deleted file mode 100644
index e4fa96b09..000000000
--- a/Assets/Plugins/Starpelly/ScreenUtility.cs
+++ /dev/null
@@ -1,111 +0,0 @@
-using UnityEngine;
-
-public static class ScreenUtility
-{
- public static Camera camera;
-
- public static float Left
- {
- get
- {
- if (camera)
- return camera.ViewportToWorldPoint(new Vector3(0f, 0f, 0f)).x;
-
- if (Camera.main)
- return Camera.main.ViewportToWorldPoint(new Vector3(0f, 0f, 0f)).x;
-
- return 0.0f;
- }
- }
-
- public static float Right
- {
- get
- {
- if (camera)
- return camera.ViewportToWorldPoint(new Vector3(1.0f, 0f, 0f)).x;
-
- if (Camera.main)
- return Camera.main.ViewportToWorldPoint(new Vector3(1.0f, 0f, 0f)).x;
-
- return 0.0f;
- }
- }
-
- public static float Top
- {
- get
- {
- if (camera)
- return camera.ViewportToWorldPoint(new Vector3(0f, 1.0f, 0f)).y;
-
- if (Camera.main)
- return Camera.main.ViewportToWorldPoint(new Vector3(0f, 1.0f, 0f)).y;
-
- return 0.0f;
- }
- }
-
- public static float Bottom
- {
- get
- {
- if (camera)
- return camera.ViewportToWorldPoint(new Vector3(0f, 0f, 0f)).y;
-
- if (Camera.main)
- return Camera.main.ViewportToWorldPoint(new Vector3(0f, 0f, 0f)).y;
-
- return 0.0f;
- }
- }
-
- public static Vector3 Center
- {
- get
- {
- if (camera)
- return camera.ViewportToWorldPoint(new Vector3(0.5f, 0.5f, 0f));
-
- if (Camera.main)
- return Camera.main.ViewportToWorldPoint(new Vector3(0.5f, 0.5f, 0f));
-
- return Vector3.zero;
- }
- }
-
- public static bool ScreenContainsPoint(Vector3 worldPosition)
- {
- return Camera.main.rect.Contains(Camera.main.WorldToViewportPoint(worldPosition));
- }
-
- public static void ConstrainCamera(Camera camera, Bounds bounds)
- {
- float left = camera.ViewportToWorldPoint(new Vector3(0f, 0f, 0f)).x;
- float right = camera.ViewportToWorldPoint(new Vector3(1.0f, 0f, 0f)).x;
- float top = camera.ViewportToWorldPoint(new Vector3(0f, 1.0f, 0f)).y;
- float bottom = camera.ViewportToWorldPoint(new Vector3(0f, 0f, 0f)).y;
-
- if (top > bounds.max.y)
- {
- float topDiff = bounds.max.y - top;
- camera.transform.position += new Vector3(0, topDiff, 0);
- }
- else if (bottom < bounds.min.y)
- {
- float botDiff = bounds.min.y - bottom;
- camera.transform.position += new Vector3(0, botDiff, 0);
- }
-
- if (right > bounds.max.x)
- {
- float rightDiff = bounds.max.x - right;
- camera.transform.position += new Vector3(rightDiff, 0, 0);
- }
- else if (left < bounds.min.x)
- {
- float leftDiff = bounds.min.x - left;
- camera.transform.position += new Vector3(leftDiff, 0, 0);
- }
- }
-}
\ No newline at end of file
diff --git a/Assets/Plugins/Starpelly/ScreenUtility.cs.meta b/Assets/Plugins/Starpelly/ScreenUtility.cs.meta
deleted file mode 100644
index 389d6050e..000000000
--- a/Assets/Plugins/Starpelly/ScreenUtility.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 8ef77a2b31ced114793835fcc91d9e34
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Plugins/Starpelly/Shaders.meta b/Assets/Plugins/Starpelly/Shaders.meta
deleted file mode 100644
index 4de8db455..000000000
--- a/Assets/Plugins/Starpelly/Shaders.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: f189f8c5d2787e84694d7f3a2be16a20
-folderAsset: yes
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Plugins/Starpelly/Shaders/Blend Modes.meta b/Assets/Plugins/Starpelly/Shaders/Blend Modes.meta
deleted file mode 100644
index 9d75c1c5e..000000000
--- a/Assets/Plugins/Starpelly/Shaders/Blend Modes.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: 0ad209f05754ddf4a96bf4e0e02b9228
-folderAsset: yes
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Plugins/Starpelly/Shaders/Blend Modes/Add.shader b/Assets/Plugins/Starpelly/Shaders/Blend Modes/Add.shader
deleted file mode 100644
index c2488a710..000000000
--- a/Assets/Plugins/Starpelly/Shaders/Blend Modes/Add.shader
+++ /dev/null
@@ -1,106 +0,0 @@
-Shader "Blendmodes/Add"
-{
- Properties
- {
- [Header(Properties)]
- _MainTex ("Blend Texture", 2D) = "white" {}
- _Tint1 ("Tint on Texture", Color) = (1,1,1,0)
- _Tint2 ("Tint on Blended Result", Color) = (1,1,1,0)
- _Alpha ("Opacity of Blended Result", Range(0.0, 1.0)) = 1.0
-
- //blending
-
- [Header(Blending)]
- [Enum(UnityEngine.Rendering.BlendMode)] _BlendSrc ("Blend mode Source", Int) = 5
- [Enum(UnityEngine.Rendering.BlendMode)] _BlendDst ("Blend mode Destination", Int) = 10
-
- // required for UI.Mask
- [Header(Stencil)]
- [Enum(UnityEngine.Rendering.CompareFunction)] _StencilComp ("Stencil Comparison", Float) = 8
- _Stencil ("Stencil ID", Float) = 0
- [Enum(UnityEngine.Rendering.StencilOp)] _StencilOp ("Stencil Operation", Float) = 0
- _StencilWriteMask ("Stencil Write Mask", Float) = 255
- _StencilReadMask ("Stencil Read Mask", Float) = 255
- [Enum(None,0,Alpha,1,Red,8,Green,4,Blue,2,RGB,14,RGBA,15)] _ColorMask("Color Mask", Int) = 15
- }
- SubShader
- {
- Tags { "Queue"="Transparent" "IgnoreProjector"="true" "RenderType"="Transparent" }
- LOD 100
- Blend [_BlendSrc] [_BlendDst]
-
- // required for UI.Mask
- Stencil
- {
- Ref [_Stencil]
- Comp [_StencilComp]
- Pass [_StencilOp]
- ReadMask [_StencilReadMask]
- WriteMask [_StencilWriteMask]
- }
-
- GrabPass
- {
- "_BackgroundTexture"
- }
-
- Pass
- {
- CGPROGRAM
- #pragma vertex vert
- #pragma fragment frag
-
- #include "UnityCG.cginc"
- #include "CGIncludes/PhotoshopBlendModes.cginc"
-
- struct appdata
- {
- float4 vertex : POSITION;
- float2 uv : TEXCOORD0;
- float4 color : COLOR;
- };
-
- struct v2f
- {
- float2 uv : TEXCOORD0;
- float4 vertex : SV_POSITION;
- float4 color : COLOR;
- float2 bguv : TEXCOORD1;
- };
-
- sampler2D _MainTex;
- fixed4 _MainTex_ST;
- fixed4 _Tint1;
- fixed4 _Tint2;
- fixed _Alpha;
-
- sampler2D _BackgroundTexture;
-
- v2f vert (appdata v)
- {
- v2f o;
- o.vertex = UnityObjectToClipPos(v.vertex);
- o.uv = TRANSFORM_TEX(v.uv, _MainTex);
- o.color = v.color;
- o.bguv = ComputeGrabScreenPos(o.vertex);
- return o;
- }
-
- fixed4 frag (v2f i) : SV_Target
- {
- fixed4 mainColor = tex2D(_BackgroundTexture, i.bguv);
- fixed4 blendColor = tex2D(_MainTex, i.uv) * i.color;
- blendColor.xyz += _Tint1.xyz * _Tint1.a;
-
-
- // perform blend
- mainColor.xyz = Add(mainColor.xyz, blendColor.xyz);
- mainColor.xyz += _Tint2.xyz * _Tint2.a;
- mainColor.a = blendColor.a * _Alpha;
-
- return mainColor;
- }
- ENDCG
- }
- }
-}
diff --git a/Assets/Plugins/Starpelly/Shaders/Blend Modes/Add.shader.meta b/Assets/Plugins/Starpelly/Shaders/Blend Modes/Add.shader.meta
deleted file mode 100644
index 8cc9ae807..000000000
--- a/Assets/Plugins/Starpelly/Shaders/Blend Modes/Add.shader.meta
+++ /dev/null
@@ -1,9 +0,0 @@
-fileFormatVersion: 2
-guid: 0ae724cf80d801b43b140517e4bbb12f
-ShaderImporter:
- externalObjects: {}
- defaultTextures: []
- nonModifiableTextures: []
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Plugins/Starpelly/Shaders/Blend Modes/CGIncludes.meta b/Assets/Plugins/Starpelly/Shaders/Blend Modes/CGIncludes.meta
deleted file mode 100644
index 045a0b35a..000000000
--- a/Assets/Plugins/Starpelly/Shaders/Blend Modes/CGIncludes.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: edc6b21aef727c14bb42932e92c7be29
-folderAsset: yes
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Plugins/Starpelly/Shaders/Blend Modes/CGIncludes/PhotoshopBlendModes.cginc b/Assets/Plugins/Starpelly/Shaders/Blend Modes/CGIncludes/PhotoshopBlendModes.cginc
deleted file mode 100644
index 51ec14d2b..000000000
--- a/Assets/Plugins/Starpelly/Shaders/Blend Modes/CGIncludes/PhotoshopBlendModes.cginc
+++ /dev/null
@@ -1,233 +0,0 @@
-#ifndef PHOTOSHOP_BLENDMODES_INCLUDED
-#define PHOTOSHOP_BLENDMODES_INCLUDED
-
-//
-// Ported from https://www.shadertoy.com/view/XdS3RW
-//
-// Original License:
-//
-// Creative Commons CC0 1.0 Universal (CC-0)
-//
-// 25 of the layer blending modes from Photoshop.
-//
-// The ones I couldn't figure out are from Nvidia's advanced blend equations extension spec -
-// http://www.opengl.org/registry/specs/NV/blend_equation_advanced.txt
-//
-// ~bj.2013
-//
-
-// Helpers
-
-const fixed3 l = fixed3(0.3, 0.59, 0.11);
-
-/** @private */
-float pinLight(float s, float d)
-{
- return (2.0*s - 1.0 > d) ? 2.0*s - 1.0 : (s < 0.5 * d) ? 2.0*s : d;
-}
-
-/** @private */
-float vividLight(float s, float d)
-{
- return (s < 0.5) ? 1.0 - (1.0 - d) / (2.0 * s) : d / (2.0 * (1.0 - s));
-}
-
-/** @private */
-float hardLight(float s, float d)
-{
- return (s < 0.5) ? 2.0*s*d : 1.0 - 2.0*(1.0 - s)*(1.0 - d);
-}
-
-/** @private */
-float softLight(float s, float d)
-{
- return (s < 0.5) ? d - (1.0 - 2.0*s)*d*(1.0 - d)
- : (d < 0.25) ? d + (2.0*s - 1.0)*d*((16.0*d - 12.0)*d + 3.0)
- : d + (2.0*s - 1.0) * (sqrt(d) - d);
-}
-
-/** @private */
-float overlay( float s, float d )
-{
- return (d < 0.5) ? 2.0*s*d : 1.0 - 2.0*(1.0 - s)*(1.0 - d);
-}
-
-// rgb<-->hsv functions by Sam Hocevar
-// http://lolengine.net/blog/2013/07/27/rgb-to-hsv-in-glsl
-/** @private */
-fixed3 rgb2hsv(fixed3 c)
-{
- fixed4 K = fixed4(0.0, -1.0 / 3.0, 2.0 / 3.0, -1.0);
- fixed4 p = lerp(fixed4(c.bg, K.wz), fixed4(c.gb, K.xy), step(c.b, c.g));
- fixed4 q = lerp(fixed4(p.xyw, c.r), fixed4(c.r, p.yzx), step(p.x, c.r));
-
- float d = q.x - min(q.w, q.y);
- float e = 1.0e-10;
- return fixed3(abs(q.z + (q.w - q.y) / (6.0 * d + e)), d / (q.x + e), q.x);
-}
-
-/** @private */
-fixed3 hsv2rgb(fixed3 c)
-{
- fixed4 K = fixed4(1.0, 2.0 / 3.0, 1.0 / 3.0, 3.0);
- fixed3 p = abs(frac(c.xxx + K.xyz) * 6.0 - K.www);
- return c.z * lerp(K.xxx, clamp(p - K.xxx, 0.0, 1.0), c.y);
-}
-
-// Public API Blend Modes
-
-fixed3 ColorBurn(fixed3 s, fixed3 d)
-{
- return 1.0 - (1.0 - d) / s;
-}
-
-fixed3 LinearBurn(fixed3 s, fixed3 d )
-{
- return s + d - 1.0;
-}
-
-fixed3 DarkerColor(fixed3 s, fixed3 d)
-{
- return (s.x + s.y + s.z < d.x + d.y + d.z) ? s : d;
-}
-
-fixed3 Lighten(fixed3 s, fixed3 d)
-{
- return max(s, d);
-}
-
-fixed3 Screen(fixed3 s, fixed3 d)
-{
- return s + d - s * d;
-}
-
-fixed3 ColorDodge(fixed3 s, fixed3 d)
-{
- return d / (1.0 - s);
-}
-
-fixed3 LinearDodge(fixed3 s, fixed3 d)
-{
- return s + d;
-}
-
-fixed3 LighterColor(fixed3 s, fixed3 d)
-{
- return (s.x + s.y + s.z > d.x + d.y + d.z) ? s : d;
-}
-
-fixed3 Overlay(fixed3 s, fixed3 d)
-{
- fixed3 c;
- c.x = overlay(s.x, d.x);
- c.y = overlay(s.y, d.y);
- c.z = overlay(s.z, d.z);
- return c;
-}
-
-fixed3 SoftLight(fixed3 s, fixed3 d)
-{
- fixed3 c;
- c.x = softLight(s.x, d.x);
- c.y = softLight(s.y, d.y);
- c.z = softLight(s.z, d.z);
- return c;
-}
-
-fixed3 HardLight(fixed3 s, fixed3 d)
-{
- fixed3 c;
- c.x = hardLight(s.x, d.x);
- c.y = hardLight(s.y, d.y);
- c.z = hardLight(s.z, d.z);
- return c;
-}
-
-fixed3 VividLight(fixed3 s, fixed3 d)
-{
- fixed3 c;
- c.x = vividLight(s.x, d.x);
- c.y = vividLight(s.y, d.y);
- c.z = vividLight(s.z, d.z);
- return c;
-}
-
-fixed3 LinearLight(fixed3 s, fixed3 d)
-{
- return 2.0*s + d - 1.0;
-}
-
-fixed3 PinLight(fixed3 s, fixed3 d)
-{
- fixed3 c;
- c.x = pinLight(s.x, d.x);
- c.y = pinLight(s.y, d.y);
- c.z = pinLight(s.z, d.z);
- return c;
-}
-
-fixed3 HardMix(fixed3 s, fixed3 d)
-{
- return floor(s+d);
-}
-
-fixed3 Difference(fixed3 s, fixed3 d)
-{
- return abs(d-s);
-}
-
-fixed3 Exclusion(fixed3 s, fixed3 d)
-{
- return s + d - 2.0*s*d;
-}
-
-fixed3 Subtract(fixed3 s, fixed3 d)
-{
- return s-d;
-}
-
-fixed3 Divide(fixed3 s, fixed3 d)
-{
- return s/d;
-}
-
-fixed3 Add(fixed3 s, fixed3 d)
-{
- return s+d;
-}
-
-fixed3 Hue(fixed3 s, fixed3 d)
-{
- d = rgb2hsv(d);
- d.x = rgb2hsv(s).x;
- return hsv2rgb(d);
-}
-
-fixed3 Color(fixed3 s, fixed3 d)
-{
- s = rgb2hsv(s);
- s.z = rgb2hsv(d).z;
- return hsv2rgb(s);
-}
-
-fixed3 Saturation(fixed3 s, fixed3 d)
-{
- d = rgb2hsv(d);
- d.y = rgb2hsv(s).y;
- return hsv2rgb(d);
-}
-
-fixed3 Luminosity(fixed3 s, fixed3 d)
-{
- float dLum = dot(d, l);
- float sLum = dot(s, l);
- float lum = sLum - dLum;
- fixed3 c = d + lum;
- float minC = min(min(c.x, c.y), c.z);
- float maxC = max(max(c.x, c.y), c.z);
- if(minC < 0.0) return sLum + ((c - sLum) * sLum) / (sLum - minC);
- else if(maxC > 1.0) return sLum + ((c - sLum) * (1.0 - sLum)) / (maxC - sLum);
- else return c;
-}
-
-#endif // PHOTOSHOP_BLENDMODES_INCLUDED
\ No newline at end of file
diff --git a/Assets/Plugins/Starpelly/Shaders/Blend Modes/CGIncludes/PhotoshopBlendModes.cginc.meta b/Assets/Plugins/Starpelly/Shaders/Blend Modes/CGIncludes/PhotoshopBlendModes.cginc.meta
deleted file mode 100644
index 7b7c9c88b..000000000
--- a/Assets/Plugins/Starpelly/Shaders/Blend Modes/CGIncludes/PhotoshopBlendModes.cginc.meta
+++ /dev/null
@@ -1,9 +0,0 @@
-fileFormatVersion: 2
-guid: eb4ec4a0e81584343b972b2a25f96bc2
-ShaderImporter:
- externalObjects: {}
- defaultTextures: []
- nonModifiableTextures: []
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Plugins/Starpelly/Shaders/Blend Modes/Color.shader b/Assets/Plugins/Starpelly/Shaders/Blend Modes/Color.shader
deleted file mode 100644
index 804e0283a..000000000
--- a/Assets/Plugins/Starpelly/Shaders/Blend Modes/Color.shader
+++ /dev/null
@@ -1,106 +0,0 @@
-Shader "Blendmodes/Color"
-{
- Properties
- {
- [Header(Properties)]
- _MainTex ("Blend Texture", 2D) = "white" {}
- _Tint1 ("Tint on Texture", Color) = (1,1,1,0)
- _Tint2 ("Tint on Blended Result", Color) = (1,1,1,0)
- _Alpha ("Opacity of Blended Result", Range(0.0, 1.0)) = 1.0
-
- //blending
-
- [Header(Blending)]
- [Enum(UnityEngine.Rendering.BlendMode)] _BlendSrc ("Blend mode Source", Int) = 5
- [Enum(UnityEngine.Rendering.BlendMode)] _BlendDst ("Blend mode Destination", Int) = 10
-
- // required for UI.Mask
- [Header(Stencil)]
- [Enum(UnityEngine.Rendering.CompareFunction)] _StencilComp ("Stencil Comparison", Float) = 8
- _Stencil ("Stencil ID", Float) = 0
- [Enum(UnityEngine.Rendering.StencilOp)] _StencilOp ("Stencil Operation", Float) = 0
- _StencilWriteMask ("Stencil Write Mask", Float) = 255
- _StencilReadMask ("Stencil Read Mask", Float) = 255
- [Enum(None,0,Alpha,1,Red,8,Green,4,Blue,2,RGB,14,RGBA,15)] _ColorMask("Color Mask", Int) = 15
- }
- SubShader
- {
- Tags { "Queue"="Transparent" "IgnoreProjector"="true" "RenderType"="Transparent" }
- LOD 100
- Blend [_BlendSrc] [_BlendDst]
-
- // required for UI.Mask
- Stencil
- {
- Ref [_Stencil]
- Comp [_StencilComp]
- Pass [_StencilOp]
- ReadMask [_StencilReadMask]
- WriteMask [_StencilWriteMask]
- }
-
- GrabPass
- {
- "_BackgroundTexture"
- }
-
- Pass
- {
- CGPROGRAM
- #pragma vertex vert
- #pragma fragment frag
-
- #include "UnityCG.cginc"
- #include "CGIncludes/PhotoshopBlendModes.cginc"
-
- struct appdata
- {
- float4 vertex : POSITION;
- float2 uv : TEXCOORD0;
- float4 color : COLOR;
- };
-
- struct v2f
- {
- float2 uv : TEXCOORD0;
- float4 vertex : SV_POSITION;
- float4 color : COLOR;
- float2 bguv : TEXCOORD1;
- };
-
- sampler2D _MainTex;
- fixed4 _MainTex_ST;
- fixed4 _Tint1;
- fixed4 _Tint2;
- fixed _Alpha;
-
- sampler2D _BackgroundTexture;
-
- v2f vert (appdata v)
- {
- v2f o;
- o.vertex = UnityObjectToClipPos(v.vertex);
- o.uv = TRANSFORM_TEX(v.uv, _MainTex);
- o.color = v.color;
- o.bguv = ComputeGrabScreenPos(o.vertex);
- return o;
- }
-
- fixed4 frag (v2f i) : SV_Target
- {
- fixed4 mainColor = tex2D(_BackgroundTexture, i.bguv);
- fixed4 blendColor = tex2D(_MainTex, i.uv) * i.color;
- blendColor.xyz += _Tint1.xyz * _Tint1.a;
-
-
- // perform blend
- mainColor.xyz = Color(mainColor.xyz, blendColor.xyz);
- mainColor.xyz += _Tint2.xyz * _Tint2.a;
- mainColor.a = blendColor.a * _Alpha;
-
- return mainColor;
- }
- ENDCG
- }
- }
-}
diff --git a/Assets/Plugins/Starpelly/Shaders/Blend Modes/Color.shader.meta b/Assets/Plugins/Starpelly/Shaders/Blend Modes/Color.shader.meta
deleted file mode 100644
index d446c74ce..000000000
--- a/Assets/Plugins/Starpelly/Shaders/Blend Modes/Color.shader.meta
+++ /dev/null
@@ -1,9 +0,0 @@
-fileFormatVersion: 2
-guid: bb85841f8c67d2442b800ab4be4ecae5
-ShaderImporter:
- externalObjects: {}
- defaultTextures: []
- nonModifiableTextures: []
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Plugins/Starpelly/Shaders/Blend Modes/ColorBurn.shader b/Assets/Plugins/Starpelly/Shaders/Blend Modes/ColorBurn.shader
deleted file mode 100644
index b6d3cf754..000000000
--- a/Assets/Plugins/Starpelly/Shaders/Blend Modes/ColorBurn.shader
+++ /dev/null
@@ -1,106 +0,0 @@
-Shader "Blendmodes/ColorBurn"
-{
- Properties
- {
- [Header(Properties)]
- _MainTex ("Blend Texture", 2D) = "white" {}
- _Tint1 ("Tint on Texture", Color) = (1,1,1,0)
- _Tint2 ("Tint on Blended Result", Color) = (1,1,1,0)
- _Alpha ("Opacity of Blended Result", Range(0.0, 1.0)) = 1.0
-
- //blending
-
- [Header(Blending)]
- [Enum(UnityEngine.Rendering.BlendMode)] _BlendSrc ("Blend mode Source", Int) = 5
- [Enum(UnityEngine.Rendering.BlendMode)] _BlendDst ("Blend mode Destination", Int) = 10
-
- // required for UI.Mask
- [Header(Stencil)]
- [Enum(UnityEngine.Rendering.CompareFunction)] _StencilComp ("Stencil Comparison", Float) = 8
- _Stencil ("Stencil ID", Float) = 0
- [Enum(UnityEngine.Rendering.StencilOp)] _StencilOp ("Stencil Operation", Float) = 0
- _StencilWriteMask ("Stencil Write Mask", Float) = 255
- _StencilReadMask ("Stencil Read Mask", Float) = 255
- [Enum(None,0,Alpha,1,Red,8,Green,4,Blue,2,RGB,14,RGBA,15)] _ColorMask("Color Mask", Int) = 15
- }
- SubShader
- {
- Tags { "Queue"="Transparent" "IgnoreProjector"="true" "RenderType"="Transparent" }
- LOD 100
- Blend [_BlendSrc] [_BlendDst]
-
- // required for UI.Mask
- Stencil
- {
- Ref [_Stencil]
- Comp [_StencilComp]
- Pass [_StencilOp]
- ReadMask [_StencilReadMask]
- WriteMask [_StencilWriteMask]
- }
-
- GrabPass
- {
- "_BackgroundTexture"
- }
-
- Pass
- {
- CGPROGRAM
- #pragma vertex vert
- #pragma fragment frag
-
- #include "UnityCG.cginc"
- #include "CGIncludes/PhotoshopBlendModes.cginc"
-
- struct appdata
- {
- float4 vertex : POSITION;
- float2 uv : TEXCOORD0;
- float4 color : COLOR;
- };
-
- struct v2f
- {
- float2 uv : TEXCOORD0;
- float4 vertex : SV_POSITION;
- float4 color : COLOR;
- float2 bguv : TEXCOORD1;
- };
-
- sampler2D _MainTex;
- fixed4 _MainTex_ST;
- fixed4 _Tint1;
- fixed4 _Tint2;
- fixed _Alpha;
-
- sampler2D _BackgroundTexture;
-
- v2f vert (appdata v)
- {
- v2f o;
- o.vertex = UnityObjectToClipPos(v.vertex);
- o.uv = TRANSFORM_TEX(v.uv, _MainTex);
- o.color = v.color;
- o.bguv = ComputeGrabScreenPos(o.vertex);
- return o;
- }
-
- fixed4 frag (v2f i) : SV_Target
- {
- fixed4 mainColor = tex2D(_BackgroundTexture, i.bguv);
- fixed4 blendColor = tex2D(_MainTex, i.uv) * i.color;
- blendColor.xyz += _Tint1.xyz * _Tint1.a;
-
-
- // perform blend
- mainColor.xyz = ColorBurn(mainColor.xyz, blendColor.xyz);
- mainColor.xyz += _Tint2.xyz * _Tint2.a;
- mainColor.a = blendColor.a * _Alpha;
-
- return mainColor;
- }
- ENDCG
- }
- }
-}
diff --git a/Assets/Plugins/Starpelly/Shaders/Blend Modes/ColorBurn.shader.meta b/Assets/Plugins/Starpelly/Shaders/Blend Modes/ColorBurn.shader.meta
deleted file mode 100644
index 62564ebc2..000000000
--- a/Assets/Plugins/Starpelly/Shaders/Blend Modes/ColorBurn.shader.meta
+++ /dev/null
@@ -1,9 +0,0 @@
-fileFormatVersion: 2
-guid: da5b85daa127ed043af5579d10e6e49d
-ShaderImporter:
- externalObjects: {}
- defaultTextures: []
- nonModifiableTextures: []
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Plugins/Starpelly/Shaders/Blend Modes/ColorDodge.shader b/Assets/Plugins/Starpelly/Shaders/Blend Modes/ColorDodge.shader
deleted file mode 100644
index 1b4b366fd..000000000
--- a/Assets/Plugins/Starpelly/Shaders/Blend Modes/ColorDodge.shader
+++ /dev/null
@@ -1,106 +0,0 @@
-Shader "Blendmodes/ColorDodge"
-{
- Properties
- {
- [Header(Properties)]
- _MainTex ("Blend Texture", 2D) = "white" {}
- _Tint1 ("Tint on Texture", Color) = (1,1,1,0)
- _Tint2 ("Tint on Blended Result", Color) = (1,1,1,0)
- _Alpha ("Opacity of Blended Result", Range(0.0, 1.0)) = 1.0
-
- //blending
-
- [Header(Blending)]
- [Enum(UnityEngine.Rendering.BlendMode)] _BlendSrc ("Blend mode Source", Int) = 5
- [Enum(UnityEngine.Rendering.BlendMode)] _BlendDst ("Blend mode Destination", Int) = 10
-
- // required for UI.Mask
- [Header(Stencil)]
- [Enum(UnityEngine.Rendering.CompareFunction)] _StencilComp ("Stencil Comparison", Float) = 8
- _Stencil ("Stencil ID", Float) = 0
- [Enum(UnityEngine.Rendering.StencilOp)] _StencilOp ("Stencil Operation", Float) = 0
- _StencilWriteMask ("Stencil Write Mask", Float) = 255
- _StencilReadMask ("Stencil Read Mask", Float) = 255
- [Enum(None,0,Alpha,1,Red,8,Green,4,Blue,2,RGB,14,RGBA,15)] _ColorMask("Color Mask", Int) = 15
- }
- SubShader
- {
- Tags { "Queue"="Transparent" "IgnoreProjector"="true" "RenderType"="Transparent" }
- LOD 100
- Blend [_BlendSrc] [_BlendDst]
-
- // required for UI.Mask
- Stencil
- {
- Ref [_Stencil]
- Comp [_StencilComp]
- Pass [_StencilOp]
- ReadMask [_StencilReadMask]
- WriteMask [_StencilWriteMask]
- }
-
- GrabPass
- {
- "_BackgroundTexture"
- }
-
- Pass
- {
- CGPROGRAM
- #pragma vertex vert
- #pragma fragment frag
-
- #include "UnityCG.cginc"
- #include "CGIncludes/PhotoshopBlendModes.cginc"
-
- struct appdata
- {
- float4 vertex : POSITION;
- float2 uv : TEXCOORD0;
- float4 color : COLOR;
- };
-
- struct v2f
- {
- float2 uv : TEXCOORD0;
- float4 vertex : SV_POSITION;
- float4 color : COLOR;
- float2 bguv : TEXCOORD1;
- };
-
- sampler2D _MainTex;
- fixed4 _MainTex_ST;
- fixed4 _Tint1;
- fixed4 _Tint2;
- fixed _Alpha;
-
- sampler2D _BackgroundTexture;
-
- v2f vert (appdata v)
- {
- v2f o;
- o.vertex = UnityObjectToClipPos(v.vertex);
- o.uv = TRANSFORM_TEX(v.uv, _MainTex);
- o.color = v.color;
- o.bguv = ComputeGrabScreenPos(o.vertex);
- return o;
- }
-
- fixed4 frag (v2f i) : SV_Target
- {
- fixed4 mainColor = tex2D(_BackgroundTexture, i.bguv);
- fixed4 blendColor = tex2D(_MainTex, i.uv) * i.color;
- blendColor.xyz += _Tint1.xyz * _Tint1.a;
-
-
- // perform blend
- mainColor.xyz = ColorDodge(mainColor.xyz, blendColor.xyz);
- mainColor.xyz += _Tint2.xyz * _Tint2.a;
- mainColor.a = blendColor.a * _Alpha;
-
- return mainColor;
- }
- ENDCG
- }
- }
-}
diff --git a/Assets/Plugins/Starpelly/Shaders/Blend Modes/ColorDodge.shader.meta b/Assets/Plugins/Starpelly/Shaders/Blend Modes/ColorDodge.shader.meta
deleted file mode 100644
index 7be8e7577..000000000
--- a/Assets/Plugins/Starpelly/Shaders/Blend Modes/ColorDodge.shader.meta
+++ /dev/null
@@ -1,9 +0,0 @@
-fileFormatVersion: 2
-guid: a1c1848ac45b3724483467a3f2f10326
-ShaderImporter:
- externalObjects: {}
- defaultTextures: []
- nonModifiableTextures: []
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Plugins/Starpelly/Shaders/Blend Modes/DarkerColor.shader b/Assets/Plugins/Starpelly/Shaders/Blend Modes/DarkerColor.shader
deleted file mode 100644
index ad48d4826..000000000
--- a/Assets/Plugins/Starpelly/Shaders/Blend Modes/DarkerColor.shader
+++ /dev/null
@@ -1,106 +0,0 @@
-Shader "Blendmodes/DarkerColor"
-{
- Properties
- {
- [Header(Properties)]
- _MainTex ("Blend Texture", 2D) = "white" {}
- _Tint1 ("Tint on Texture", Color) = (1,1,1,0)
- _Tint2 ("Tint on Blended Result", Color) = (1,1,1,0)
- _Alpha ("Opacity of Blended Result", Range(0.0, 1.0)) = 1.0
-
- //blending
-
- [Header(Blending)]
- [Enum(UnityEngine.Rendering.BlendMode)] _BlendSrc ("Blend mode Source", Int) = 5
- [Enum(UnityEngine.Rendering.BlendMode)] _BlendDst ("Blend mode Destination", Int) = 10
-
- // required for UI.Mask
- [Header(Stencil)]
- [Enum(UnityEngine.Rendering.CompareFunction)] _StencilComp ("Stencil Comparison", Float) = 8
- _Stencil ("Stencil ID", Float) = 0
- [Enum(UnityEngine.Rendering.StencilOp)] _StencilOp ("Stencil Operation", Float) = 0
- _StencilWriteMask ("Stencil Write Mask", Float) = 255
- _StencilReadMask ("Stencil Read Mask", Float) = 255
- [Enum(None,0,Alpha,1,Red,8,Green,4,Blue,2,RGB,14,RGBA,15)] _ColorMask("Color Mask", Int) = 15
- }
- SubShader
- {
- Tags { "Queue"="Transparent" "IgnoreProjector"="true" "RenderType"="Transparent" }
- LOD 100
- Blend [_BlendSrc] [_BlendDst]
-
- // required for UI.Mask
- Stencil
- {
- Ref [_Stencil]
- Comp [_StencilComp]
- Pass [_StencilOp]
- ReadMask [_StencilReadMask]
- WriteMask [_StencilWriteMask]
- }
-
- GrabPass
- {
- "_BackgroundTexture"
- }
-
- Pass
- {
- CGPROGRAM
- #pragma vertex vert
- #pragma fragment frag
-
- #include "UnityCG.cginc"
- #include "CGIncludes/PhotoshopBlendModes.cginc"
-
- struct appdata
- {
- float4 vertex : POSITION;
- float2 uv : TEXCOORD0;
- float4 color : COLOR;
- };
-
- struct v2f
- {
- float2 uv : TEXCOORD0;
- float4 vertex : SV_POSITION;
- float4 color : COLOR;
- float2 bguv : TEXCOORD1;
- };
-
- sampler2D _MainTex;
- fixed4 _MainTex_ST;
- fixed4 _Tint1;
- fixed4 _Tint2;
- fixed _Alpha;
-
- sampler2D _BackgroundTexture;
-
- v2f vert (appdata v)
- {
- v2f o;
- o.vertex = UnityObjectToClipPos(v.vertex);
- o.uv = TRANSFORM_TEX(v.uv, _MainTex);
- o.color = v.color;
- o.bguv = ComputeGrabScreenPos(o.vertex);
- return o;
- }
-
- fixed4 frag (v2f i) : SV_Target
- {
- fixed4 mainColor = tex2D(_BackgroundTexture, i.bguv);
- fixed4 blendColor = tex2D(_MainTex, i.uv) * i.color;
- blendColor.xyz += _Tint1.xyz * _Tint1.a;
-
-
- // perform blend
- mainColor.xyz = DarkerColor(mainColor.xyz, blendColor.xyz);
- mainColor.xyz += _Tint2.xyz * _Tint2.a;
- mainColor.a = blendColor.a * _Alpha;
-
- return mainColor;
- }
- ENDCG
- }
- }
-}
diff --git a/Assets/Plugins/Starpelly/Shaders/Blend Modes/DarkerColor.shader.meta b/Assets/Plugins/Starpelly/Shaders/Blend Modes/DarkerColor.shader.meta
deleted file mode 100644
index b665e064e..000000000
--- a/Assets/Plugins/Starpelly/Shaders/Blend Modes/DarkerColor.shader.meta
+++ /dev/null
@@ -1,9 +0,0 @@
-fileFormatVersion: 2
-guid: d0090e6d378db134baa8c6bf62a4a607
-ShaderImporter:
- externalObjects: {}
- defaultTextures: []
- nonModifiableTextures: []
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Plugins/Starpelly/Shaders/Blend Modes/Difference.shader b/Assets/Plugins/Starpelly/Shaders/Blend Modes/Difference.shader
deleted file mode 100644
index 33a37caed..000000000
--- a/Assets/Plugins/Starpelly/Shaders/Blend Modes/Difference.shader
+++ /dev/null
@@ -1,106 +0,0 @@
-Shader "Blendmodes/Difference"
-{
- Properties
- {
- [Header(Properties)]
- _MainTex ("Blend Texture", 2D) = "white" {}
- _Tint1 ("Tint on Texture", Color) = (1,1,1,0)
- _Tint2 ("Tint on Blended Result", Color) = (1,1,1,0)
- _Alpha ("Opacity of Blended Result", Range(0.0, 1.0)) = 1.0
-
- //blending
-
- [Header(Blending)]
- [Enum(UnityEngine.Rendering.BlendMode)] _BlendSrc ("Blend mode Source", Int) = 5
- [Enum(UnityEngine.Rendering.BlendMode)] _BlendDst ("Blend mode Destination", Int) = 10
-
- // required for UI.Mask
- [Header(Stencil)]
- [Enum(UnityEngine.Rendering.CompareFunction)] _StencilComp ("Stencil Comparison", Float) = 8
- _Stencil ("Stencil ID", Float) = 0
- [Enum(UnityEngine.Rendering.StencilOp)] _StencilOp ("Stencil Operation", Float) = 0
- _StencilWriteMask ("Stencil Write Mask", Float) = 255
- _StencilReadMask ("Stencil Read Mask", Float) = 255
- [Enum(None,0,Alpha,1,Red,8,Green,4,Blue,2,RGB,14,RGBA,15)] _ColorMask("Color Mask", Int) = 15
- }
- SubShader
- {
- Tags { "Queue"="Transparent" "IgnoreProjector"="true" "RenderType"="Transparent" }
- LOD 100
- Blend [_BlendSrc] [_BlendDst]
-
- // required for UI.Mask
- Stencil
- {
- Ref [_Stencil]
- Comp [_StencilComp]
- Pass [_StencilOp]
- ReadMask [_StencilReadMask]
- WriteMask [_StencilWriteMask]
- }
-
- GrabPass
- {
- "_BackgroundTexture"
- }
-
- Pass
- {
- CGPROGRAM
- #pragma vertex vert
- #pragma fragment frag
-
- #include "UnityCG.cginc"
- #include "CGIncludes/PhotoshopBlendModes.cginc"
-
- struct appdata
- {
- float4 vertex : POSITION;
- float2 uv : TEXCOORD0;
- float4 color : COLOR;
- };
-
- struct v2f
- {
- float2 uv : TEXCOORD0;
- float4 vertex : SV_POSITION;
- float4 color : COLOR;
- float2 bguv : TEXCOORD1;
- };
-
- sampler2D _MainTex;
- fixed4 _MainTex_ST;
- fixed4 _Tint1;
- fixed4 _Tint2;
- fixed _Alpha;
-
- sampler2D _BackgroundTexture;
-
- v2f vert (appdata v)
- {
- v2f o;
- o.vertex = UnityObjectToClipPos(v.vertex);
- o.uv = TRANSFORM_TEX(v.uv, _MainTex);
- o.color = v.color;
- o.bguv = ComputeGrabScreenPos(o.vertex);
- return o;
- }
-
- fixed4 frag (v2f i) : SV_Target
- {
- fixed4 mainColor = tex2D(_BackgroundTexture, i.bguv);
- fixed4 blendColor = tex2D(_MainTex, i.uv) * i.color;
- blendColor.xyz += _Tint1.xyz * _Tint1.a;
-
-
- // perform blend
- mainColor.xyz = Difference(mainColor.xyz, blendColor.xyz);
- mainColor.xyz += _Tint2.xyz * _Tint2.a;
- mainColor.a = blendColor.a * _Alpha;
-
- return mainColor;
- }
- ENDCG
- }
- }
-}
diff --git a/Assets/Plugins/Starpelly/Shaders/Blend Modes/Difference.shader.meta b/Assets/Plugins/Starpelly/Shaders/Blend Modes/Difference.shader.meta
deleted file mode 100644
index cd018eea0..000000000
--- a/Assets/Plugins/Starpelly/Shaders/Blend Modes/Difference.shader.meta
+++ /dev/null
@@ -1,9 +0,0 @@
-fileFormatVersion: 2
-guid: 74ccff3d254d9644fa54c55127b3646d
-ShaderImporter:
- externalObjects: {}
- defaultTextures: []
- nonModifiableTextures: []
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Plugins/Starpelly/Shaders/Blend Modes/Divide.shader b/Assets/Plugins/Starpelly/Shaders/Blend Modes/Divide.shader
deleted file mode 100644
index b75e4c95f..000000000
--- a/Assets/Plugins/Starpelly/Shaders/Blend Modes/Divide.shader
+++ /dev/null
@@ -1,106 +0,0 @@
-Shader "Blendmodes/Divide"
-{
- Properties
- {
- [Header(Properties)]
- _MainTex ("Blend Texture", 2D) = "white" {}
- _Tint1 ("Tint on Texture", Color) = (1,1,1,0)
- _Tint2 ("Tint on Blended Result", Color) = (1,1,1,0)
- _Alpha ("Opacity of Blended Result", Range(0.0, 1.0)) = 1.0
-
- //blending
-
- [Header(Blending)]
- [Enum(UnityEngine.Rendering.BlendMode)] _BlendSrc ("Blend mode Source", Int) = 5
- [Enum(UnityEngine.Rendering.BlendMode)] _BlendDst ("Blend mode Destination", Int) = 10
-
- // required for UI.Mask
- [Header(Stencil)]
- [Enum(UnityEngine.Rendering.CompareFunction)] _StencilComp ("Stencil Comparison", Float) = 8
- _Stencil ("Stencil ID", Float) = 0
- [Enum(UnityEngine.Rendering.StencilOp)] _StencilOp ("Stencil Operation", Float) = 0
- _StencilWriteMask ("Stencil Write Mask", Float) = 255
- _StencilReadMask ("Stencil Read Mask", Float) = 255
- [Enum(None,0,Alpha,1,Red,8,Green,4,Blue,2,RGB,14,RGBA,15)] _ColorMask("Color Mask", Int) = 15
- }
- SubShader
- {
- Tags { "Queue"="Transparent" "IgnoreProjector"="true" "RenderType"="Transparent" }
- LOD 100
- Blend [_BlendSrc] [_BlendDst]
-
- // required for UI.Mask
- Stencil
- {
- Ref [_Stencil]
- Comp [_StencilComp]
- Pass [_StencilOp]
- ReadMask [_StencilReadMask]
- WriteMask [_StencilWriteMask]
- }
-
- GrabPass
- {
- "_BackgroundTexture"
- }
-
- Pass
- {
- CGPROGRAM
- #pragma vertex vert
- #pragma fragment frag
-
- #include "UnityCG.cginc"
- #include "CGIncludes/PhotoshopBlendModes.cginc"
-
- struct appdata
- {
- float4 vertex : POSITION;
- float2 uv : TEXCOORD0;
- float4 color : COLOR;
- };
-
- struct v2f
- {
- float2 uv : TEXCOORD0;
- float4 vertex : SV_POSITION;
- float4 color : COLOR;
- float2 bguv : TEXCOORD1;
- };
-
- sampler2D _MainTex;
- fixed4 _MainTex_ST;
- fixed4 _Tint1;
- fixed4 _Tint2;
- fixed _Alpha;
-
- sampler2D _BackgroundTexture;
-
- v2f vert (appdata v)
- {
- v2f o;
- o.vertex = UnityObjectToClipPos(v.vertex);
- o.uv = TRANSFORM_TEX(v.uv, _MainTex);
- o.color = v.color;
- o.bguv = ComputeGrabScreenPos(o.vertex);
- return o;
- }
-
- fixed4 frag (v2f i) : SV_Target
- {
- fixed4 mainColor = tex2D(_BackgroundTexture, i.bguv);
- fixed4 blendColor = tex2D(_MainTex, i.uv) * i.color;
- blendColor.xyz += _Tint1.xyz * _Tint1.a;
-
-
- // perform blend
- mainColor.xyz = Divide(mainColor.xyz, blendColor.xyz);
- mainColor.xyz += _Tint2.xyz * _Tint2.a;
- mainColor.a = blendColor.a * _Alpha;
-
- return mainColor;
- }
- ENDCG
- }
- }
-}
diff --git a/Assets/Plugins/Starpelly/Shaders/Blend Modes/Divide.shader.meta b/Assets/Plugins/Starpelly/Shaders/Blend Modes/Divide.shader.meta
deleted file mode 100644
index 6391a34d8..000000000
--- a/Assets/Plugins/Starpelly/Shaders/Blend Modes/Divide.shader.meta
+++ /dev/null
@@ -1,9 +0,0 @@
-fileFormatVersion: 2
-guid: 075fe556031b1174e8d6ca9369753b6d
-ShaderImporter:
- externalObjects: {}
- defaultTextures: []
- nonModifiableTextures: []
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Plugins/Starpelly/Shaders/Blend Modes/Exclusion.shader b/Assets/Plugins/Starpelly/Shaders/Blend Modes/Exclusion.shader
deleted file mode 100644
index 5b6f711d4..000000000
--- a/Assets/Plugins/Starpelly/Shaders/Blend Modes/Exclusion.shader
+++ /dev/null
@@ -1,106 +0,0 @@
-Shader "Blendmodes/Exclusion"
-{
- Properties
- {
- [Header(Properties)]
- _MainTex ("Blend Texture", 2D) = "white" {}
- _Tint1 ("Tint on Texture", Color) = (1,1,1,0)
- _Tint2 ("Tint on Blended Result", Color) = (1,1,1,0)
- _Alpha ("Opacity of Blended Result", Range(0.0, 1.0)) = 1.0
-
- //blending
-
- [Header(Blending)]
- [Enum(UnityEngine.Rendering.BlendMode)] _BlendSrc ("Blend mode Source", Int) = 5
- [Enum(UnityEngine.Rendering.BlendMode)] _BlendDst ("Blend mode Destination", Int) = 10
-
- // required for UI.Mask
- [Header(Stencil)]
- [Enum(UnityEngine.Rendering.CompareFunction)] _StencilComp ("Stencil Comparison", Float) = 8
- _Stencil ("Stencil ID", Float) = 0
- [Enum(UnityEngine.Rendering.StencilOp)] _StencilOp ("Stencil Operation", Float) = 0
- _StencilWriteMask ("Stencil Write Mask", Float) = 255
- _StencilReadMask ("Stencil Read Mask", Float) = 255
- [Enum(None,0,Alpha,1,Red,8,Green,4,Blue,2,RGB,14,RGBA,15)] _ColorMask("Color Mask", Int) = 15
- }
- SubShader
- {
- Tags { "Queue"="Transparent" "IgnoreProjector"="true" "RenderType"="Transparent" }
- LOD 100
- Blend [_BlendSrc] [_BlendDst]
-
- // required for UI.Mask
- Stencil
- {
- Ref [_Stencil]
- Comp [_StencilComp]
- Pass [_StencilOp]
- ReadMask [_StencilReadMask]
- WriteMask [_StencilWriteMask]
- }
-
- GrabPass
- {
- "_BackgroundTexture"
- }
-
- Pass
- {
- CGPROGRAM
- #pragma vertex vert
- #pragma fragment frag
-
- #include "UnityCG.cginc"
- #include "CGIncludes/PhotoshopBlendModes.cginc"
-
- struct appdata
- {
- float4 vertex : POSITION;
- float2 uv : TEXCOORD0;
- float4 color : COLOR;
- };
-
- struct v2f
- {
- float2 uv : TEXCOORD0;
- float4 vertex : SV_POSITION;
- float4 color : COLOR;
- float2 bguv : TEXCOORD1;
- };
-
- sampler2D _MainTex;
- fixed4 _MainTex_ST;
- fixed4 _Tint1;
- fixed4 _Tint2;
- fixed _Alpha;
-
- sampler2D _BackgroundTexture;
-
- v2f vert (appdata v)
- {
- v2f o;
- o.vertex = UnityObjectToClipPos(v.vertex);
- o.uv = TRANSFORM_TEX(v.uv, _MainTex);
- o.color = v.color;
- o.bguv = ComputeGrabScreenPos(o.vertex);
- return o;
- }
-
- fixed4 frag (v2f i) : SV_Target
- {
- fixed4 mainColor = tex2D(_BackgroundTexture, i.bguv);
- fixed4 blendColor = tex2D(_MainTex, i.uv) * i.color;
- blendColor.xyz += _Tint1.xyz * _Tint1.a;
-
-
- // perform blend
- mainColor.xyz = Exclusion(mainColor.xyz, blendColor.xyz);
- mainColor.xyz += _Tint2.xyz * _Tint2.a;
- mainColor.a = blendColor.a * _Alpha;
-
- return mainColor;
- }
- ENDCG
- }
- }
-}
diff --git a/Assets/Plugins/Starpelly/Shaders/Blend Modes/Exclusion.shader.meta b/Assets/Plugins/Starpelly/Shaders/Blend Modes/Exclusion.shader.meta
deleted file mode 100644
index e13c54e80..000000000
--- a/Assets/Plugins/Starpelly/Shaders/Blend Modes/Exclusion.shader.meta
+++ /dev/null
@@ -1,9 +0,0 @@
-fileFormatVersion: 2
-guid: d292d32bbf4832745a23aa6a3a06b1de
-ShaderImporter:
- externalObjects: {}
- defaultTextures: []
- nonModifiableTextures: []
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Plugins/Starpelly/Shaders/Blend Modes/HardLight.shader b/Assets/Plugins/Starpelly/Shaders/Blend Modes/HardLight.shader
deleted file mode 100644
index 5b7ec1944..000000000
--- a/Assets/Plugins/Starpelly/Shaders/Blend Modes/HardLight.shader
+++ /dev/null
@@ -1,106 +0,0 @@
-Shader "Blendmodes/HardLight"
-{
- Properties
- {
- [Header(Properties)]
- _MainTex ("Blend Texture", 2D) = "white" {}
- _Tint1 ("Tint on Texture", Color) = (1,1,1,0)
- _Tint2 ("Tint on Blended Result", Color) = (1,1,1,0)
- _Alpha ("Opacity of Blended Result", Range(0.0, 1.0)) = 1.0
-
- //blending
-
- [Header(Blending)]
- [Enum(UnityEngine.Rendering.BlendMode)] _BlendSrc ("Blend mode Source", Int) = 5
- [Enum(UnityEngine.Rendering.BlendMode)] _BlendDst ("Blend mode Destination", Int) = 10
-
- // required for UI.Mask
- [Header(Stencil)]
- [Enum(UnityEngine.Rendering.CompareFunction)] _StencilComp ("Stencil Comparison", Float) = 8
- _Stencil ("Stencil ID", Float) = 0
- [Enum(UnityEngine.Rendering.StencilOp)] _StencilOp ("Stencil Operation", Float) = 0
- _StencilWriteMask ("Stencil Write Mask", Float) = 255
- _StencilReadMask ("Stencil Read Mask", Float) = 255
- [Enum(None,0,Alpha,1,Red,8,Green,4,Blue,2,RGB,14,RGBA,15)] _ColorMask("Color Mask", Int) = 15
- }
- SubShader
- {
- Tags { "Queue"="Transparent" "IgnoreProjector"="true" "RenderType"="Transparent" }
- LOD 100
- Blend [_BlendSrc] [_BlendDst]
-
- // required for UI.Mask
- Stencil
- {
- Ref [_Stencil]
- Comp [_StencilComp]
- Pass [_StencilOp]
- ReadMask [_StencilReadMask]
- WriteMask [_StencilWriteMask]
- }
-
- GrabPass
- {
- "_BackgroundTexture"
- }
-
- Pass
- {
- CGPROGRAM
- #pragma vertex vert
- #pragma fragment frag
-
- #include "UnityCG.cginc"
- #include "CGIncludes/PhotoshopBlendModes.cginc"
-
- struct appdata
- {
- float4 vertex : POSITION;
- float2 uv : TEXCOORD0;
- float4 color : COLOR;
- };
-
- struct v2f
- {
- float2 uv : TEXCOORD0;
- float4 vertex : SV_POSITION;
- float4 color : COLOR;
- float2 bguv : TEXCOORD1;
- };
-
- sampler2D _MainTex;
- fixed4 _MainTex_ST;
- fixed4 _Tint1;
- fixed4 _Tint2;
- fixed _Alpha;
-
- sampler2D _BackgroundTexture;
-
- v2f vert (appdata v)
- {
- v2f o;
- o.vertex = UnityObjectToClipPos(v.vertex);
- o.uv = TRANSFORM_TEX(v.uv, _MainTex);
- o.color = v.color;
- o.bguv = ComputeGrabScreenPos(o.vertex);
- return o;
- }
-
- fixed4 frag (v2f i) : SV_Target
- {
- fixed4 mainColor = tex2D(_BackgroundTexture, i.bguv);
- fixed4 blendColor = tex2D(_MainTex, i.uv) * i.color;
- blendColor.xyz += _Tint1.xyz * _Tint1.a;
-
-
- // perform blend
- mainColor.xyz = HardLight(mainColor.xyz, blendColor.xyz);
- mainColor.xyz += _Tint2.xyz * _Tint2.a;
- mainColor.a = blendColor.a * _Alpha;
-
- return mainColor;
- }
- ENDCG
- }
- }
-}
diff --git a/Assets/Plugins/Starpelly/Shaders/Blend Modes/HardLight.shader.meta b/Assets/Plugins/Starpelly/Shaders/Blend Modes/HardLight.shader.meta
deleted file mode 100644
index 2360601d9..000000000
--- a/Assets/Plugins/Starpelly/Shaders/Blend Modes/HardLight.shader.meta
+++ /dev/null
@@ -1,9 +0,0 @@
-fileFormatVersion: 2
-guid: fe63576204204b1428a23c825667e2a9
-ShaderImporter:
- externalObjects: {}
- defaultTextures: []
- nonModifiableTextures: []
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Plugins/Starpelly/Shaders/Blend Modes/HardMix.shader b/Assets/Plugins/Starpelly/Shaders/Blend Modes/HardMix.shader
deleted file mode 100644
index edabfcde4..000000000
--- a/Assets/Plugins/Starpelly/Shaders/Blend Modes/HardMix.shader
+++ /dev/null
@@ -1,106 +0,0 @@
-Shader "Blendmodes/HardMix"
-{
- Properties
- {
- [Header(Properties)]
- _MainTex ("Blend Texture", 2D) = "white" {}
- _Tint1 ("Tint on Texture", Color) = (1,1,1,0)
- _Tint2 ("Tint on Blended Result", Color) = (1,1,1,0)
- _Alpha ("Opacity of Blended Result", Range(0.0, 1.0)) = 1.0
-
- //blending
-
- [Header(Blending)]
- [Enum(UnityEngine.Rendering.BlendMode)] _BlendSrc ("Blend mode Source", Int) = 5
- [Enum(UnityEngine.Rendering.BlendMode)] _BlendDst ("Blend mode Destination", Int) = 10
-
- // required for UI.Mask
- [Header(Stencil)]
- [Enum(UnityEngine.Rendering.CompareFunction)] _StencilComp ("Stencil Comparison", Float) = 8
- _Stencil ("Stencil ID", Float) = 0
- [Enum(UnityEngine.Rendering.StencilOp)] _StencilOp ("Stencil Operation", Float) = 0
- _StencilWriteMask ("Stencil Write Mask", Float) = 255
- _StencilReadMask ("Stencil Read Mask", Float) = 255
- [Enum(None,0,Alpha,1,Red,8,Green,4,Blue,2,RGB,14,RGBA,15)] _ColorMask("Color Mask", Int) = 15
- }
- SubShader
- {
- Tags { "Queue"="Transparent" "IgnoreProjector"="true" "RenderType"="Transparent" }
- LOD 100
- Blend [_BlendSrc] [_BlendDst]
-
- // required for UI.Mask
- Stencil
- {
- Ref [_Stencil]
- Comp [_StencilComp]
- Pass [_StencilOp]
- ReadMask [_StencilReadMask]
- WriteMask [_StencilWriteMask]
- }
-
- GrabPass
- {
- "_BackgroundTexture"
- }
-
- Pass
- {
- CGPROGRAM
- #pragma vertex vert
- #pragma fragment frag
-
- #include "UnityCG.cginc"
- #include "CGIncludes/PhotoshopBlendModes.cginc"
-
- struct appdata
- {
- float4 vertex : POSITION;
- float2 uv : TEXCOORD0;
- float4 color : COLOR;
- };
-
- struct v2f
- {
- float2 uv : TEXCOORD0;
- float4 vertex : SV_POSITION;
- float4 color : COLOR;
- float2 bguv : TEXCOORD1;
- };
-
- sampler2D _MainTex;
- fixed4 _MainTex_ST;
- fixed4 _Tint1;
- fixed4 _Tint2;
- fixed _Alpha;
-
- sampler2D _BackgroundTexture;
-
- v2f vert (appdata v)
- {
- v2f o;
- o.vertex = UnityObjectToClipPos(v.vertex);
- o.uv = TRANSFORM_TEX(v.uv, _MainTex);
- o.color = v.color;
- o.bguv = ComputeGrabScreenPos(o.vertex);
- return o;
- }
-
- fixed4 frag (v2f i) : SV_Target
- {
- fixed4 mainColor = tex2D(_BackgroundTexture, i.bguv);
- fixed4 blendColor = tex2D(_MainTex, i.uv) * i.color;
- blendColor.xyz += _Tint1.xyz * _Tint1.a;
-
-
- // perform blend
- mainColor.xyz = HardMix(mainColor.xyz, blendColor.xyz);
- mainColor.xyz += _Tint2.xyz * _Tint2.a;
- mainColor.a = blendColor.a * _Alpha;
-
- return mainColor;
- }
- ENDCG
- }
- }
-}
diff --git a/Assets/Plugins/Starpelly/Shaders/Blend Modes/HardMix.shader.meta b/Assets/Plugins/Starpelly/Shaders/Blend Modes/HardMix.shader.meta
deleted file mode 100644
index 80c79faa2..000000000
--- a/Assets/Plugins/Starpelly/Shaders/Blend Modes/HardMix.shader.meta
+++ /dev/null
@@ -1,9 +0,0 @@
-fileFormatVersion: 2
-guid: 4dc9a51c26a36e044904b7e3a5a87c51
-ShaderImporter:
- externalObjects: {}
- defaultTextures: []
- nonModifiableTextures: []
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Plugins/Starpelly/Shaders/Blend Modes/Hue.shader b/Assets/Plugins/Starpelly/Shaders/Blend Modes/Hue.shader
deleted file mode 100644
index b14077e43..000000000
--- a/Assets/Plugins/Starpelly/Shaders/Blend Modes/Hue.shader
+++ /dev/null
@@ -1,106 +0,0 @@
-Shader "Blendmodes/Hue"
-{
- Properties
- {
- [Header(Properties)]
- _MainTex ("Blend Texture", 2D) = "white" {}
- _Tint1 ("Tint on Texture", Color) = (1,1,1,0)
- _Tint2 ("Tint on Blended Result", Color) = (1,1,1,0)
- _Alpha ("Opacity of Blended Result", Range(0.0, 1.0)) = 1.0
-
- //blending
-
- [Header(Blending)]
- [Enum(UnityEngine.Rendering.BlendMode)] _BlendSrc ("Blend mode Source", Int) = 5
- [Enum(UnityEngine.Rendering.BlendMode)] _BlendDst ("Blend mode Destination", Int) = 10
-
- // required for UI.Mask
- [Header(Stencil)]
- [Enum(UnityEngine.Rendering.CompareFunction)] _StencilComp ("Stencil Comparison", Float) = 8
- _Stencil ("Stencil ID", Float) = 0
- [Enum(UnityEngine.Rendering.StencilOp)] _StencilOp ("Stencil Operation", Float) = 0
- _StencilWriteMask ("Stencil Write Mask", Float) = 255
- _StencilReadMask ("Stencil Read Mask", Float) = 255
- [Enum(None,0,Alpha,1,Red,8,Green,4,Blue,2,RGB,14,RGBA,15)] _ColorMask("Color Mask", Int) = 15
- }
- SubShader
- {
- Tags { "Queue"="Transparent" "IgnoreProjector"="true" "RenderType"="Transparent" }
- LOD 100
- Blend [_BlendSrc] [_BlendDst]
-
- // required for UI.Mask
- Stencil
- {
- Ref [_Stencil]
- Comp [_StencilComp]
- Pass [_StencilOp]
- ReadMask [_StencilReadMask]
- WriteMask [_StencilWriteMask]
- }
-
- GrabPass
- {
- "_BackgroundTexture"
- }
-
- Pass
- {
- CGPROGRAM
- #pragma vertex vert
- #pragma fragment frag
-
- #include "UnityCG.cginc"
- #include "CGIncludes/PhotoshopBlendModes.cginc"
-
- struct appdata
- {
- float4 vertex : POSITION;
- float2 uv : TEXCOORD0;
- float4 color : COLOR;
- };
-
- struct v2f
- {
- float2 uv : TEXCOORD0;
- float4 vertex : SV_POSITION;
- float4 color : COLOR;
- float2 bguv : TEXCOORD1;
- };
-
- sampler2D _MainTex;
- fixed4 _MainTex_ST;
- fixed4 _Tint1;
- fixed4 _Tint2;
- fixed _Alpha;
-
- sampler2D _BackgroundTexture;
-
- v2f vert (appdata v)
- {
- v2f o;
- o.vertex = UnityObjectToClipPos(v.vertex);
- o.uv = TRANSFORM_TEX(v.uv, _MainTex);
- o.color = v.color;
- o.bguv = ComputeGrabScreenPos(o.vertex);
- return o;
- }
-
- fixed4 frag (v2f i) : SV_Target
- {
- fixed4 mainColor = tex2D(_BackgroundTexture, i.bguv);
- fixed4 blendColor = tex2D(_MainTex, i.uv) * i.color;
- blendColor.xyz += _Tint1.xyz * _Tint1.a;
-
-
- // perform blend
- mainColor.xyz = Hue(mainColor.xyz, blendColor.xyz);
- mainColor.xyz += _Tint2.xyz * _Tint2.a;
- mainColor.a = blendColor.a * _Alpha;
-
- return mainColor;
- }
- ENDCG
- }
- }
-}
diff --git a/Assets/Plugins/Starpelly/Shaders/Blend Modes/Hue.shader.meta b/Assets/Plugins/Starpelly/Shaders/Blend Modes/Hue.shader.meta
deleted file mode 100644
index d94229907..000000000
--- a/Assets/Plugins/Starpelly/Shaders/Blend Modes/Hue.shader.meta
+++ /dev/null
@@ -1,9 +0,0 @@
-fileFormatVersion: 2
-guid: ac709b7b6ba995046b2e357657ce6e8a
-ShaderImporter:
- externalObjects: {}
- defaultTextures: []
- nonModifiableTextures: []
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Plugins/Starpelly/Shaders/Blend Modes/Lighten.shader b/Assets/Plugins/Starpelly/Shaders/Blend Modes/Lighten.shader
deleted file mode 100644
index 5cb05ca80..000000000
--- a/Assets/Plugins/Starpelly/Shaders/Blend Modes/Lighten.shader
+++ /dev/null
@@ -1,106 +0,0 @@
-Shader "Blendmodes/Lighten"
-{
- Properties
- {
- [Header(Properties)]
- _MainTex ("Blend Texture", 2D) = "white" {}
- _Tint1 ("Tint on Texture", Color) = (1,1,1,0)
- _Tint2 ("Tint on Blended Result", Color) = (1,1,1,0)
- _Alpha ("Opacity of Blended Result", Range(0.0, 1.0)) = 1.0
-
- //blending
-
- [Header(Blending)]
- [Enum(UnityEngine.Rendering.BlendMode)] _BlendSrc ("Blend mode Source", Int) = 5
- [Enum(UnityEngine.Rendering.BlendMode)] _BlendDst ("Blend mode Destination", Int) = 10
-
- // required for UI.Mask
- [Header(Stencil)]
- [Enum(UnityEngine.Rendering.CompareFunction)] _StencilComp ("Stencil Comparison", Float) = 8
- _Stencil ("Stencil ID", Float) = 0
- [Enum(UnityEngine.Rendering.StencilOp)] _StencilOp ("Stencil Operation", Float) = 0
- _StencilWriteMask ("Stencil Write Mask", Float) = 255
- _StencilReadMask ("Stencil Read Mask", Float) = 255
- [Enum(None,0,Alpha,1,Red,8,Green,4,Blue,2,RGB,14,RGBA,15)] _ColorMask("Color Mask", Int) = 15
- }
- SubShader
- {
- Tags { "Queue"="Transparent" "IgnoreProjector"="true" "RenderType"="Transparent" }
- LOD 100
- Blend [_BlendSrc] [_BlendDst]
-
- // required for UI.Mask
- Stencil
- {
- Ref [_Stencil]
- Comp [_StencilComp]
- Pass [_StencilOp]
- ReadMask [_StencilReadMask]
- WriteMask [_StencilWriteMask]
- }
-
- GrabPass
- {
- "_BackgroundTexture"
- }
-
- Pass
- {
- CGPROGRAM
- #pragma vertex vert
- #pragma fragment frag
-
- #include "UnityCG.cginc"
- #include "CGIncludes/PhotoshopBlendModes.cginc"
-
- struct appdata
- {
- float4 vertex : POSITION;
- float2 uv : TEXCOORD0;
- float4 color : COLOR;
- };
-
- struct v2f
- {
- float2 uv : TEXCOORD0;
- float4 vertex : SV_POSITION;
- float4 color : COLOR;
- float2 bguv : TEXCOORD1;
- };
-
- sampler2D _MainTex;
- fixed4 _MainTex_ST;
- fixed4 _Tint1;
- fixed4 _Tint2;
- fixed _Alpha;
-
- sampler2D _BackgroundTexture;
-
- v2f vert (appdata v)
- {
- v2f o;
- o.vertex = UnityObjectToClipPos(v.vertex);
- o.uv = TRANSFORM_TEX(v.uv, _MainTex);
- o.color = v.color;
- o.bguv = ComputeGrabScreenPos(o.vertex);
- return o;
- }
-
- fixed4 frag (v2f i) : SV_Target
- {
- fixed4 mainColor = tex2D(_BackgroundTexture, i.bguv);
- fixed4 blendColor = tex2D(_MainTex, i.uv) * i.color;
- blendColor.xyz += _Tint1.xyz * _Tint1.a;
-
-
- // perform blend
- mainColor.xyz = Lighten(mainColor.xyz, blendColor.xyz);
- mainColor.xyz += _Tint2.xyz * _Tint2.a;
- mainColor.a = blendColor.a * _Alpha;
-
- return mainColor;
- }
- ENDCG
- }
- }
-}
diff --git a/Assets/Plugins/Starpelly/Shaders/Blend Modes/Lighten.shader.meta b/Assets/Plugins/Starpelly/Shaders/Blend Modes/Lighten.shader.meta
deleted file mode 100644
index f13f7d5c8..000000000
--- a/Assets/Plugins/Starpelly/Shaders/Blend Modes/Lighten.shader.meta
+++ /dev/null
@@ -1,9 +0,0 @@
-fileFormatVersion: 2
-guid: af52445a55f450d488ad19f3f0f7b2c6
-ShaderImporter:
- externalObjects: {}
- defaultTextures: []
- nonModifiableTextures: []
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Plugins/Starpelly/Shaders/Blend Modes/LighterColor.shader b/Assets/Plugins/Starpelly/Shaders/Blend Modes/LighterColor.shader
deleted file mode 100644
index f0d781383..000000000
--- a/Assets/Plugins/Starpelly/Shaders/Blend Modes/LighterColor.shader
+++ /dev/null
@@ -1,106 +0,0 @@
-Shader "Blendmodes/LighterColor"
-{
- Properties
- {
- [Header(Properties)]
- _MainTex ("Blend Texture", 2D) = "white" {}
- _Tint1 ("Tint on Texture", Color) = (1,1,1,0)
- _Tint2 ("Tint on Blended Result", Color) = (1,1,1,0)
- _Alpha ("Opacity of Blended Result", Range(0.0, 1.0)) = 1.0
-
- //blending
-
- [Header(Blending)]
- [Enum(UnityEngine.Rendering.BlendMode)] _BlendSrc ("Blend mode Source", Int) = 5
- [Enum(UnityEngine.Rendering.BlendMode)] _BlendDst ("Blend mode Destination", Int) = 10
-
- // required for UI.Mask
- [Header(Stencil)]
- [Enum(UnityEngine.Rendering.CompareFunction)] _StencilComp ("Stencil Comparison", Float) = 8
- _Stencil ("Stencil ID", Float) = 0
- [Enum(UnityEngine.Rendering.StencilOp)] _StencilOp ("Stencil Operation", Float) = 0
- _StencilWriteMask ("Stencil Write Mask", Float) = 255
- _StencilReadMask ("Stencil Read Mask", Float) = 255
- [Enum(None,0,Alpha,1,Red,8,Green,4,Blue,2,RGB,14,RGBA,15)] _ColorMask("Color Mask", Int) = 15
- }
- SubShader
- {
- Tags { "Queue"="Transparent" "IgnoreProjector"="true" "RenderType"="Transparent" }
- LOD 100
- Blend [_BlendSrc] [_BlendDst]
-
- // required for UI.Mask
- Stencil
- {
- Ref [_Stencil]
- Comp [_StencilComp]
- Pass [_StencilOp]
- ReadMask [_StencilReadMask]
- WriteMask [_StencilWriteMask]
- }
-
- GrabPass
- {
- "_BackgroundTexture"
- }
-
- Pass
- {
- CGPROGRAM
- #pragma vertex vert
- #pragma fragment frag
-
- #include "UnityCG.cginc"
- #include "CGIncludes/PhotoshopBlendModes.cginc"
-
- struct appdata
- {
- float4 vertex : POSITION;
- float2 uv : TEXCOORD0;
- float4 color : COLOR;
- };
-
- struct v2f
- {
- float2 uv : TEXCOORD0;
- float4 vertex : SV_POSITION;
- float4 color : COLOR;
- float2 bguv : TEXCOORD1;
- };
-
- sampler2D _MainTex;
- fixed4 _MainTex_ST;
- fixed4 _Tint1;
- fixed4 _Tint2;
- fixed _Alpha;
-
- sampler2D _BackgroundTexture;
-
- v2f vert (appdata v)
- {
- v2f o;
- o.vertex = UnityObjectToClipPos(v.vertex);
- o.uv = TRANSFORM_TEX(v.uv, _MainTex);
- o.color = v.color;
- o.bguv = ComputeGrabScreenPos(o.vertex);
- return o;
- }
-
- fixed4 frag (v2f i) : SV_Target
- {
- fixed4 mainColor = tex2D(_BackgroundTexture, i.bguv);
- fixed4 blendColor = tex2D(_MainTex, i.uv) * i.color;
- blendColor.xyz += _Tint1.xyz * _Tint1.a;
-
-
- // perform blend
- mainColor.xyz = LighterColor(mainColor.xyz, blendColor.xyz);
- mainColor.xyz += _Tint2.xyz * _Tint2.a;
- mainColor.a = blendColor.a * _Alpha;
-
- return mainColor;
- }
- ENDCG
- }
- }
-}
diff --git a/Assets/Plugins/Starpelly/Shaders/Blend Modes/LighterColor.shader.meta b/Assets/Plugins/Starpelly/Shaders/Blend Modes/LighterColor.shader.meta
deleted file mode 100644
index d1525081c..000000000
--- a/Assets/Plugins/Starpelly/Shaders/Blend Modes/LighterColor.shader.meta
+++ /dev/null
@@ -1,9 +0,0 @@
-fileFormatVersion: 2
-guid: 8c3ff3424a6646142b77fd44709ac344
-ShaderImporter:
- externalObjects: {}
- defaultTextures: []
- nonModifiableTextures: []
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Plugins/Starpelly/Shaders/Blend Modes/LinearBurn.shader b/Assets/Plugins/Starpelly/Shaders/Blend Modes/LinearBurn.shader
deleted file mode 100644
index fc6895439..000000000
--- a/Assets/Plugins/Starpelly/Shaders/Blend Modes/LinearBurn.shader
+++ /dev/null
@@ -1,106 +0,0 @@
-Shader "Blendmodes/LinearBurn"
-{
- Properties
- {
- [Header(Properties)]
- _MainTex ("Blend Texture", 2D) = "white" {}
- _Tint1 ("Tint on Texture", Color) = (1,1,1,0)
- _Tint2 ("Tint on Blended Result", Color) = (1,1,1,0)
- _Alpha ("Opacity of Blended Result", Range(0.0, 1.0)) = 1.0
-
- //blending
-
- [Header(Blending)]
- [Enum(UnityEngine.Rendering.BlendMode)] _BlendSrc ("Blend mode Source", Int) = 5
- [Enum(UnityEngine.Rendering.BlendMode)] _BlendDst ("Blend mode Destination", Int) = 10
-
- // required for UI.Mask
- [Header(Stencil)]
- [Enum(UnityEngine.Rendering.CompareFunction)] _StencilComp ("Stencil Comparison", Float) = 8
- _Stencil ("Stencil ID", Float) = 0
- [Enum(UnityEngine.Rendering.StencilOp)] _StencilOp ("Stencil Operation", Float) = 0
- _StencilWriteMask ("Stencil Write Mask", Float) = 255
- _StencilReadMask ("Stencil Read Mask", Float) = 255
- [Enum(None,0,Alpha,1,Red,8,Green,4,Blue,2,RGB,14,RGBA,15)] _ColorMask("Color Mask", Int) = 15
- }
- SubShader
- {
- Tags { "Queue"="Transparent" "IgnoreProjector"="true" "RenderType"="Transparent" }
- LOD 100
- Blend [_BlendSrc] [_BlendDst]
-
- // required for UI.Mask
- Stencil
- {
- Ref [_Stencil]
- Comp [_StencilComp]
- Pass [_StencilOp]
- ReadMask [_StencilReadMask]
- WriteMask [_StencilWriteMask]
- }
-
- GrabPass
- {
- "_BackgroundTexture"
- }
-
- Pass
- {
- CGPROGRAM
- #pragma vertex vert
- #pragma fragment frag
-
- #include "UnityCG.cginc"
- #include "CGIncludes/PhotoshopBlendModes.cginc"
-
- struct appdata
- {
- float4 vertex : POSITION;
- float2 uv : TEXCOORD0;
- float4 color : COLOR;
- };
-
- struct v2f
- {
- float2 uv : TEXCOORD0;
- float4 vertex : SV_POSITION;
- float4 color : COLOR;
- float2 bguv : TEXCOORD1;
- };
-
- sampler2D _MainTex;
- fixed4 _MainTex_ST;
- fixed4 _Tint1;
- fixed4 _Tint2;
- fixed _Alpha;
-
- sampler2D _BackgroundTexture;
-
- v2f vert (appdata v)
- {
- v2f o;
- o.vertex = UnityObjectToClipPos(v.vertex);
- o.uv = TRANSFORM_TEX(v.uv, _MainTex);
- o.color = v.color;
- o.bguv = ComputeGrabScreenPos(o.vertex);
- return o;
- }
-
- fixed4 frag (v2f i) : SV_Target
- {
- fixed4 mainColor = tex2D(_BackgroundTexture, i.bguv);
- fixed4 blendColor = tex2D(_MainTex, i.uv) * i.color;
- blendColor.xyz += _Tint1.xyz * _Tint1.a;
-
-
- // perform blend
- mainColor.xyz = LinearBurn(mainColor.xyz, blendColor.xyz);
- mainColor.xyz += _Tint2.xyz * _Tint2.a;
- mainColor.a = blendColor.a * _Alpha;
-
- return mainColor;
- }
- ENDCG
- }
- }
-}
diff --git a/Assets/Plugins/Starpelly/Shaders/Blend Modes/LinearBurn.shader.meta b/Assets/Plugins/Starpelly/Shaders/Blend Modes/LinearBurn.shader.meta
deleted file mode 100644
index c4fec4369..000000000
--- a/Assets/Plugins/Starpelly/Shaders/Blend Modes/LinearBurn.shader.meta
+++ /dev/null
@@ -1,9 +0,0 @@
-fileFormatVersion: 2
-guid: 0cce16f4622c09c47918eeaa45e90221
-ShaderImporter:
- externalObjects: {}
- defaultTextures: []
- nonModifiableTextures: []
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Plugins/Starpelly/Shaders/Blend Modes/LinearDodge.shader b/Assets/Plugins/Starpelly/Shaders/Blend Modes/LinearDodge.shader
deleted file mode 100644
index ad4370c92..000000000
--- a/Assets/Plugins/Starpelly/Shaders/Blend Modes/LinearDodge.shader
+++ /dev/null
@@ -1,106 +0,0 @@
-Shader "Blendmodes/LinearDodge"
-{
- Properties
- {
- [Header(Properties)]
- _MainTex ("Blend Texture", 2D) = "white" {}
- _Tint1 ("Tint on Texture", Color) = (1,1,1,0)
- _Tint2 ("Tint on Blended Result", Color) = (1,1,1,0)
- _Alpha ("Opacity of Blended Result", Range(0.0, 1.0)) = 1.0
-
- //blending
-
- [Header(Blending)]
- [Enum(UnityEngine.Rendering.BlendMode)] _BlendSrc ("Blend mode Source", Int) = 5
- [Enum(UnityEngine.Rendering.BlendMode)] _BlendDst ("Blend mode Destination", Int) = 10
-
- // required for UI.Mask
- [Header(Stencil)]
- [Enum(UnityEngine.Rendering.CompareFunction)] _StencilComp ("Stencil Comparison", Float) = 8
- _Stencil ("Stencil ID", Float) = 0
- [Enum(UnityEngine.Rendering.StencilOp)] _StencilOp ("Stencil Operation", Float) = 0
- _StencilWriteMask ("Stencil Write Mask", Float) = 255
- _StencilReadMask ("Stencil Read Mask", Float) = 255
- [Enum(None,0,Alpha,1,Red,8,Green,4,Blue,2,RGB,14,RGBA,15)] _ColorMask("Color Mask", Int) = 15
- }
- SubShader
- {
- Tags { "Queue"="Transparent" "IgnoreProjector"="true" "RenderType"="Transparent" }
- LOD 100
- Blend [_BlendSrc] [_BlendDst]
-
- // required for UI.Mask
- Stencil
- {
- Ref [_Stencil]
- Comp [_StencilComp]
- Pass [_StencilOp]
- ReadMask [_StencilReadMask]
- WriteMask [_StencilWriteMask]
- }
-
- GrabPass
- {
- "_BackgroundTexture"
- }
-
- Pass
- {
- CGPROGRAM
- #pragma vertex vert
- #pragma fragment frag
-
- #include "UnityCG.cginc"
- #include "CGIncludes/PhotoshopBlendModes.cginc"
-
- struct appdata
- {
- float4 vertex : POSITION;
- float2 uv : TEXCOORD0;
- float4 color : COLOR;
- };
-
- struct v2f
- {
- float2 uv : TEXCOORD0;
- float4 vertex : SV_POSITION;
- float4 color : COLOR;
- float2 bguv : TEXCOORD1;
- };
-
- sampler2D _MainTex;
- fixed4 _MainTex_ST;
- fixed4 _Tint1;
- fixed4 _Tint2;
- fixed _Alpha;
-
- sampler2D _BackgroundTexture;
-
- v2f vert (appdata v)
- {
- v2f o;
- o.vertex = UnityObjectToClipPos(v.vertex);
- o.uv = TRANSFORM_TEX(v.uv, _MainTex);
- o.color = v.color;
- o.bguv = ComputeGrabScreenPos(o.vertex);
- return o;
- }
-
- fixed4 frag (v2f i) : SV_Target
- {
- fixed4 mainColor = tex2D(_BackgroundTexture, i.bguv);
- fixed4 blendColor = tex2D(_MainTex, i.uv) * i.color;
- blendColor.xyz += _Tint1.xyz * _Tint1.a;
-
-
- // perform blend
- mainColor.xyz = LinearDodge(mainColor.xyz, blendColor.xyz);
- mainColor.xyz += _Tint2.xyz * _Tint2.a;
- mainColor.a = blendColor.a * _Alpha;
-
- return mainColor;
- }
- ENDCG
- }
- }
-}
diff --git a/Assets/Plugins/Starpelly/Shaders/Blend Modes/LinearDodge.shader.meta b/Assets/Plugins/Starpelly/Shaders/Blend Modes/LinearDodge.shader.meta
deleted file mode 100644
index de1e2384f..000000000
--- a/Assets/Plugins/Starpelly/Shaders/Blend Modes/LinearDodge.shader.meta
+++ /dev/null
@@ -1,9 +0,0 @@
-fileFormatVersion: 2
-guid: 57c2408124f76304286601e694c90cd9
-ShaderImporter:
- externalObjects: {}
- defaultTextures: []
- nonModifiableTextures: []
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Plugins/Starpelly/Shaders/Blend Modes/LinearLight.shader b/Assets/Plugins/Starpelly/Shaders/Blend Modes/LinearLight.shader
deleted file mode 100644
index b7f7f49af..000000000
--- a/Assets/Plugins/Starpelly/Shaders/Blend Modes/LinearLight.shader
+++ /dev/null
@@ -1,106 +0,0 @@
-Shader "Blendmodes/LinearLight"
-{
- Properties
- {
- [Header(Properties)]
- _MainTex ("Blend Texture", 2D) = "white" {}
- _Tint1 ("Tint on Texture", Color) = (1,1,1,0)
- _Tint2 ("Tint on Blended Result", Color) = (1,1,1,0)
- _Alpha ("Opacity of Blended Result", Range(0.0, 1.0)) = 1.0
-
- //blending
-
- [Header(Blending)]
- [Enum(UnityEngine.Rendering.BlendMode)] _BlendSrc ("Blend mode Source", Int) = 5
- [Enum(UnityEngine.Rendering.BlendMode)] _BlendDst ("Blend mode Destination", Int) = 10
-
- // required for UI.Mask
- [Header(Stencil)]
- [Enum(UnityEngine.Rendering.CompareFunction)] _StencilComp ("Stencil Comparison", Float) = 8
- _Stencil ("Stencil ID", Float) = 0
- [Enum(UnityEngine.Rendering.StencilOp)] _StencilOp ("Stencil Operation", Float) = 0
- _StencilWriteMask ("Stencil Write Mask", Float) = 255
- _StencilReadMask ("Stencil Read Mask", Float) = 255
- [Enum(None,0,Alpha,1,Red,8,Green,4,Blue,2,RGB,14,RGBA,15)] _ColorMask("Color Mask", Int) = 15
- }
- SubShader
- {
- Tags { "Queue"="Transparent" "IgnoreProjector"="true" "RenderType"="Transparent" }
- LOD 100
- Blend [_BlendSrc] [_BlendDst]
-
- // required for UI.Mask
- Stencil
- {
- Ref [_Stencil]
- Comp [_StencilComp]
- Pass [_StencilOp]
- ReadMask [_StencilReadMask]
- WriteMask [_StencilWriteMask]
- }
-
- GrabPass
- {
- "_BackgroundTexture"
- }
-
- Pass
- {
- CGPROGRAM
- #pragma vertex vert
- #pragma fragment frag
-
- #include "UnityCG.cginc"
- #include "CGIncludes/PhotoshopBlendModes.cginc"
-
- struct appdata
- {
- float4 vertex : POSITION;
- float2 uv : TEXCOORD0;
- float4 color : COLOR;
- };
-
- struct v2f
- {
- float2 uv : TEXCOORD0;
- float4 vertex : SV_POSITION;
- float4 color : COLOR;
- float2 bguv : TEXCOORD1;
- };
-
- sampler2D _MainTex;
- fixed4 _MainTex_ST;
- fixed4 _Tint1;
- fixed4 _Tint2;
- fixed _Alpha;
-
- sampler2D _BackgroundTexture;
-
- v2f vert (appdata v)
- {
- v2f o;
- o.vertex = UnityObjectToClipPos(v.vertex);
- o.uv = TRANSFORM_TEX(v.uv, _MainTex);
- o.color = v.color;
- o.bguv = ComputeGrabScreenPos(o.vertex);
- return o;
- }
-
- fixed4 frag (v2f i) : SV_Target
- {
- fixed4 mainColor = tex2D(_BackgroundTexture, i.bguv);
- fixed4 blendColor = tex2D(_MainTex, i.uv) * i.color;
- blendColor.xyz += _Tint1.xyz * _Tint1.a;
-
-
- // perform blend
- mainColor.xyz = LinearLight(mainColor.xyz, blendColor.xyz);
- mainColor.xyz += _Tint2.xyz * _Tint2.a;
- mainColor.a = blendColor.a * _Alpha;
-
- return mainColor;
- }
- ENDCG
- }
- }
-}
diff --git a/Assets/Plugins/Starpelly/Shaders/Blend Modes/LinearLight.shader.meta b/Assets/Plugins/Starpelly/Shaders/Blend Modes/LinearLight.shader.meta
deleted file mode 100644
index f13b9f29e..000000000
--- a/Assets/Plugins/Starpelly/Shaders/Blend Modes/LinearLight.shader.meta
+++ /dev/null
@@ -1,9 +0,0 @@
-fileFormatVersion: 2
-guid: b2d75a74e3683154db45a2a4191be880
-ShaderImporter:
- externalObjects: {}
- defaultTextures: []
- nonModifiableTextures: []
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Plugins/Starpelly/Shaders/Blend Modes/Luminosity.shader b/Assets/Plugins/Starpelly/Shaders/Blend Modes/Luminosity.shader
deleted file mode 100644
index 7fb18ef20..000000000
--- a/Assets/Plugins/Starpelly/Shaders/Blend Modes/Luminosity.shader
+++ /dev/null
@@ -1,106 +0,0 @@
-Shader "Blendmodes/Luminosity"
-{
- Properties
- {
- [Header(Properties)]
- _MainTex ("Blend Texture", 2D) = "white" {}
- _Tint1 ("Tint on Texture", Color) = (1,1,1,0)
- _Tint2 ("Tint on Blended Result", Color) = (1,1,1,0)
- _Alpha ("Opacity of Blended Result", Range(0.0, 1.0)) = 1.0
-
- //blending
-
- [Header(Blending)]
- [Enum(UnityEngine.Rendering.BlendMode)] _BlendSrc ("Blend mode Source", Int) = 5
- [Enum(UnityEngine.Rendering.BlendMode)] _BlendDst ("Blend mode Destination", Int) = 10
-
- // required for UI.Mask
- [Header(Stencil)]
- [Enum(UnityEngine.Rendering.CompareFunction)] _StencilComp ("Stencil Comparison", Float) = 8
- _Stencil ("Stencil ID", Float) = 0
- [Enum(UnityEngine.Rendering.StencilOp)] _StencilOp ("Stencil Operation", Float) = 0
- _StencilWriteMask ("Stencil Write Mask", Float) = 255
- _StencilReadMask ("Stencil Read Mask", Float) = 255
- [Enum(None,0,Alpha,1,Red,8,Green,4,Blue,2,RGB,14,RGBA,15)] _ColorMask("Color Mask", Int) = 15
- }
- SubShader
- {
- Tags { "Queue"="Transparent" "IgnoreProjector"="true" "RenderType"="Transparent" }
- LOD 100
- Blend [_BlendSrc] [_BlendDst]
-
- // required for UI.Mask
- Stencil
- {
- Ref [_Stencil]
- Comp [_StencilComp]
- Pass [_StencilOp]
- ReadMask [_StencilReadMask]
- WriteMask [_StencilWriteMask]
- }
-
- GrabPass
- {
- "_BackgroundTexture"
- }
-
- Pass
- {
- CGPROGRAM
- #pragma vertex vert
- #pragma fragment frag
-
- #include "UnityCG.cginc"
- #include "CGIncludes/PhotoshopBlendModes.cginc"
-
- struct appdata
- {
- float4 vertex : POSITION;
- float2 uv : TEXCOORD0;
- float4 color : COLOR;
- };
-
- struct v2f
- {
- float2 uv : TEXCOORD0;
- float4 vertex : SV_POSITION;
- float4 color : COLOR;
- float2 bguv : TEXCOORD1;
- };
-
- sampler2D _MainTex;
- fixed4 _MainTex_ST;
- fixed4 _Tint1;
- fixed4 _Tint2;
- fixed _Alpha;
-
- sampler2D _BackgroundTexture;
-
- v2f vert (appdata v)
- {
- v2f o;
- o.vertex = UnityObjectToClipPos(v.vertex);
- o.uv = TRANSFORM_TEX(v.uv, _MainTex);
- o.color = v.color;
- o.bguv = ComputeGrabScreenPos(o.vertex);
- return o;
- }
-
- fixed4 frag (v2f i) : SV_Target
- {
- fixed4 mainColor = tex2D(_BackgroundTexture, i.bguv);
- fixed4 blendColor = tex2D(_MainTex, i.uv) * i.color;
- blendColor.xyz += _Tint1.xyz * _Tint1.a;
-
-
- // perform blend
- mainColor.xyz = Luminosity(mainColor.xyz, blendColor.xyz);
- mainColor.xyz += _Tint2.xyz * _Tint2.a;
- mainColor.a = blendColor.a * _Alpha;
-
- return mainColor;
- }
- ENDCG
- }
- }
-}
diff --git a/Assets/Plugins/Starpelly/Shaders/Blend Modes/Luminosity.shader.meta b/Assets/Plugins/Starpelly/Shaders/Blend Modes/Luminosity.shader.meta
deleted file mode 100644
index 6940d3982..000000000
--- a/Assets/Plugins/Starpelly/Shaders/Blend Modes/Luminosity.shader.meta
+++ /dev/null
@@ -1,9 +0,0 @@
-fileFormatVersion: 2
-guid: fce1c8cc491cb9949990727c4b160df1
-ShaderImporter:
- externalObjects: {}
- defaultTextures: []
- nonModifiableTextures: []
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Plugins/Starpelly/Shaders/Blend Modes/Overlay.shader b/Assets/Plugins/Starpelly/Shaders/Blend Modes/Overlay.shader
deleted file mode 100644
index 3e20753dc..000000000
--- a/Assets/Plugins/Starpelly/Shaders/Blend Modes/Overlay.shader
+++ /dev/null
@@ -1,106 +0,0 @@
-Shader "Blendmodes/Overlay"
-{
- Properties
- {
- [Header(Properties)]
- _MainTex ("Blend Texture", 2D) = "white" {}
- _Tint1 ("Tint on Texture", Color) = (1,1,1,0)
- _Tint2 ("Tint on Blended Result", Color) = (1,1,1,0)
- _Alpha ("Opacity of Blended Result", Range(0.0, 1.0)) = 1.0
-
- //blending
-
- [Header(Blending)]
- [Enum(UnityEngine.Rendering.BlendMode)] _BlendSrc ("Blend mode Source", Int) = 5
- [Enum(UnityEngine.Rendering.BlendMode)] _BlendDst ("Blend mode Destination", Int) = 10
-
- // required for UI.Mask
- [Header(Stencil)]
- [Enum(UnityEngine.Rendering.CompareFunction)] _StencilComp ("Stencil Comparison", Float) = 8
- _Stencil ("Stencil ID", Float) = 0
- [Enum(UnityEngine.Rendering.StencilOp)] _StencilOp ("Stencil Operation", Float) = 0
- _StencilWriteMask ("Stencil Write Mask", Float) = 255
- _StencilReadMask ("Stencil Read Mask", Float) = 255
- [Enum(None,0,Alpha,1,Red,8,Green,4,Blue,2,RGB,14,RGBA,15)] _ColorMask("Color Mask", Int) = 15
- }
- SubShader
- {
- Tags { "Queue"="Transparent" "IgnoreProjector"="true" "RenderType"="Transparent" }
- LOD 100
- Blend [_BlendSrc] [_BlendDst]
-
- // required for UI.Mask
- Stencil
- {
- Ref [_Stencil]
- Comp [_StencilComp]
- Pass [_StencilOp]
- ReadMask [_StencilReadMask]
- WriteMask [_StencilWriteMask]
- }
-
- GrabPass
- {
- "_BackgroundTexture"
- }
-
- Pass
- {
- CGPROGRAM
- #pragma vertex vert
- #pragma fragment frag
-
- #include "UnityCG.cginc"
- #include "CGIncludes/PhotoshopBlendModes.cginc"
-
- struct appdata
- {
- float4 vertex : POSITION;
- float2 uv : TEXCOORD0;
- float4 color : COLOR;
- };
-
- struct v2f
- {
- float2 uv : TEXCOORD0;
- float4 vertex : SV_POSITION;
- float4 color : COLOR;
- float2 bguv : TEXCOORD1;
- };
-
- sampler2D _MainTex;
- fixed4 _MainTex_ST;
- fixed4 _Tint1;
- fixed4 _Tint2;
- fixed _Alpha;
-
- sampler2D _BackgroundTexture;
-
- v2f vert (appdata v)
- {
- v2f o;
- o.vertex = UnityObjectToClipPos(v.vertex);
- o.uv = TRANSFORM_TEX(v.uv, _MainTex);
- o.color = v.color;
- o.bguv = ComputeGrabScreenPos(o.vertex);
- return o;
- }
-
- fixed4 frag (v2f i) : SV_Target
- {
- fixed4 mainColor = tex2D(_BackgroundTexture, i.bguv);
- fixed4 blendColor = tex2D(_MainTex, i.uv) * i.color;
- blendColor.xyz += _Tint1.xyz * _Tint1.a;
-
-
- // perform blend
- mainColor.xyz = Overlay(mainColor.xyz, blendColor.xyz);
- mainColor.xyz += _Tint2.xyz * _Tint2.a;
- mainColor.a = blendColor.a * _Alpha;
-
- return mainColor;
- }
- ENDCG
- }
- }
-}
diff --git a/Assets/Plugins/Starpelly/Shaders/Blend Modes/Overlay.shader.meta b/Assets/Plugins/Starpelly/Shaders/Blend Modes/Overlay.shader.meta
deleted file mode 100644
index 195564c7d..000000000
--- a/Assets/Plugins/Starpelly/Shaders/Blend Modes/Overlay.shader.meta
+++ /dev/null
@@ -1,9 +0,0 @@
-fileFormatVersion: 2
-guid: 2ffc151e4b55f1e468e1a7fd115dc8f8
-ShaderImporter:
- externalObjects: {}
- defaultTextures: []
- nonModifiableTextures: []
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Plugins/Starpelly/Shaders/Blend Modes/PinLight.shader b/Assets/Plugins/Starpelly/Shaders/Blend Modes/PinLight.shader
deleted file mode 100644
index a205f4651..000000000
--- a/Assets/Plugins/Starpelly/Shaders/Blend Modes/PinLight.shader
+++ /dev/null
@@ -1,106 +0,0 @@
-Shader "Blendmodes/PinLight"
-{
- Properties
- {
- [Header(Properties)]
- _MainTex ("Blend Texture", 2D) = "white" {}
- _Tint1 ("Tint on Texture", Color) = (1,1,1,0)
- _Tint2 ("Tint on Blended Result", Color) = (1,1,1,0)
- _Alpha ("Opacity of Blended Result", Range(0.0, 1.0)) = 1.0
-
- //blending
-
- [Header(Blending)]
- [Enum(UnityEngine.Rendering.BlendMode)] _BlendSrc ("Blend mode Source", Int) = 5
- [Enum(UnityEngine.Rendering.BlendMode)] _BlendDst ("Blend mode Destination", Int) = 10
-
- // required for UI.Mask
- [Header(Stencil)]
- [Enum(UnityEngine.Rendering.CompareFunction)] _StencilComp ("Stencil Comparison", Float) = 8
- _Stencil ("Stencil ID", Float) = 0
- [Enum(UnityEngine.Rendering.StencilOp)] _StencilOp ("Stencil Operation", Float) = 0
- _StencilWriteMask ("Stencil Write Mask", Float) = 255
- _StencilReadMask ("Stencil Read Mask", Float) = 255
- [Enum(None,0,Alpha,1,Red,8,Green,4,Blue,2,RGB,14,RGBA,15)] _ColorMask("Color Mask", Int) = 15
- }
- SubShader
- {
- Tags { "Queue"="Transparent" "IgnoreProjector"="true" "RenderType"="Transparent" }
- LOD 100
- Blend [_BlendSrc] [_BlendDst]
-
- // required for UI.Mask
- Stencil
- {
- Ref [_Stencil]
- Comp [_StencilComp]
- Pass [_StencilOp]
- ReadMask [_StencilReadMask]
- WriteMask [_StencilWriteMask]
- }
-
- GrabPass
- {
- "_BackgroundTexture"
- }
-
- Pass
- {
- CGPROGRAM
- #pragma vertex vert
- #pragma fragment frag
-
- #include "UnityCG.cginc"
- #include "CGIncludes/PhotoshopBlendModes.cginc"
-
- struct appdata
- {
- float4 vertex : POSITION;
- float2 uv : TEXCOORD0;
- float4 color : COLOR;
- };
-
- struct v2f
- {
- float2 uv : TEXCOORD0;
- float4 vertex : SV_POSITION;
- float4 color : COLOR;
- float2 bguv : TEXCOORD1;
- };
-
- sampler2D _MainTex;
- fixed4 _MainTex_ST;
- fixed4 _Tint1;
- fixed4 _Tint2;
- fixed _Alpha;
-
- sampler2D _BackgroundTexture;
-
- v2f vert (appdata v)
- {
- v2f o;
- o.vertex = UnityObjectToClipPos(v.vertex);
- o.uv = TRANSFORM_TEX(v.uv, _MainTex);
- o.color = v.color;
- o.bguv = ComputeGrabScreenPos(o.vertex);
- return o;
- }
-
- fixed4 frag (v2f i) : SV_Target
- {
- fixed4 mainColor = tex2D(_BackgroundTexture, i.bguv);
- fixed4 blendColor = tex2D(_MainTex, i.uv) * i.color;
- blendColor.xyz += _Tint1.xyz * _Tint1.a;
-
-
- // perform blend
- mainColor.xyz = PinLight(mainColor.xyz, blendColor.xyz);
- mainColor.xyz += _Tint2.xyz * _Tint2.a;
- mainColor.a = blendColor.a * _Alpha;
-
- return mainColor;
- }
- ENDCG
- }
- }
-}
diff --git a/Assets/Plugins/Starpelly/Shaders/Blend Modes/PinLight.shader.meta b/Assets/Plugins/Starpelly/Shaders/Blend Modes/PinLight.shader.meta
deleted file mode 100644
index e604509ba..000000000
--- a/Assets/Plugins/Starpelly/Shaders/Blend Modes/PinLight.shader.meta
+++ /dev/null
@@ -1,9 +0,0 @@
-fileFormatVersion: 2
-guid: f78ab9a11343ac647b0fd6e24af945df
-ShaderImporter:
- externalObjects: {}
- defaultTextures: []
- nonModifiableTextures: []
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Plugins/Starpelly/Shaders/Blend Modes/Saturation.shader b/Assets/Plugins/Starpelly/Shaders/Blend Modes/Saturation.shader
deleted file mode 100644
index 1089d019b..000000000
--- a/Assets/Plugins/Starpelly/Shaders/Blend Modes/Saturation.shader
+++ /dev/null
@@ -1,106 +0,0 @@
-Shader "Blendmodes/Saturation"
-{
- Properties
- {
- [Header(Properties)]
- _MainTex ("Blend Texture", 2D) = "white" {}
- _Tint1 ("Tint on Texture", Color) = (1,1,1,0)
- _Tint2 ("Tint on Blended Result", Color) = (1,1,1,0)
- _Alpha ("Opacity of Blended Result", Range(0.0, 1.0)) = 1.0
-
- //blending
-
- [Header(Blending)]
- [Enum(UnityEngine.Rendering.BlendMode)] _BlendSrc ("Blend mode Source", Int) = 5
- [Enum(UnityEngine.Rendering.BlendMode)] _BlendDst ("Blend mode Destination", Int) = 10
-
- // required for UI.Mask
- [Header(Stencil)]
- [Enum(UnityEngine.Rendering.CompareFunction)] _StencilComp ("Stencil Comparison", Float) = 8
- _Stencil ("Stencil ID", Float) = 0
- [Enum(UnityEngine.Rendering.StencilOp)] _StencilOp ("Stencil Operation", Float) = 0
- _StencilWriteMask ("Stencil Write Mask", Float) = 255
- _StencilReadMask ("Stencil Read Mask", Float) = 255
- [Enum(None,0,Alpha,1,Red,8,Green,4,Blue,2,RGB,14,RGBA,15)] _ColorMask("Color Mask", Int) = 15
- }
- SubShader
- {
- Tags { "Queue"="Transparent" "IgnoreProjector"="true" "RenderType"="Transparent" }
- LOD 100
- Blend [_BlendSrc] [_BlendDst]
-
- // required for UI.Mask
- Stencil
- {
- Ref [_Stencil]
- Comp [_StencilComp]
- Pass [_StencilOp]
- ReadMask [_StencilReadMask]
- WriteMask [_StencilWriteMask]
- }
-
- GrabPass
- {
- "_BackgroundTexture"
- }
-
- Pass
- {
- CGPROGRAM
- #pragma vertex vert
- #pragma fragment frag
-
- #include "UnityCG.cginc"
- #include "CGIncludes/PhotoshopBlendModes.cginc"
-
- struct appdata
- {
- float4 vertex : POSITION;
- float2 uv : TEXCOORD0;
- float4 color : COLOR;
- };
-
- struct v2f
- {
- float2 uv : TEXCOORD0;
- float4 vertex : SV_POSITION;
- float4 color : COLOR;
- float2 bguv : TEXCOORD1;
- };
-
- sampler2D _MainTex;
- fixed4 _MainTex_ST;
- fixed4 _Tint1;
- fixed4 _Tint2;
- fixed _Alpha;
-
- sampler2D _BackgroundTexture;
-
- v2f vert (appdata v)
- {
- v2f o;
- o.vertex = UnityObjectToClipPos(v.vertex);
- o.uv = TRANSFORM_TEX(v.uv, _MainTex);
- o.color = v.color;
- o.bguv = ComputeGrabScreenPos(o.vertex);
- return o;
- }
-
- fixed4 frag (v2f i) : SV_Target
- {
- fixed4 mainColor = tex2D(_BackgroundTexture, i.bguv);
- fixed4 blendColor = tex2D(_MainTex, i.uv) * i.color;
- blendColor.xyz += _Tint1.xyz * _Tint1.a;
-
-
- // perform blend
- mainColor.xyz = Saturation(mainColor.xyz, blendColor.xyz);
- mainColor.xyz += _Tint2.xyz * _Tint2.a;
- mainColor.a = blendColor.a * _Alpha;
-
- return mainColor;
- }
- ENDCG
- }
- }
-}
diff --git a/Assets/Plugins/Starpelly/Shaders/Blend Modes/Saturation.shader.meta b/Assets/Plugins/Starpelly/Shaders/Blend Modes/Saturation.shader.meta
deleted file mode 100644
index 2b6cdb579..000000000
--- a/Assets/Plugins/Starpelly/Shaders/Blend Modes/Saturation.shader.meta
+++ /dev/null
@@ -1,9 +0,0 @@
-fileFormatVersion: 2
-guid: 9da612291cb24ba4f8ed18d8ad9ab609
-ShaderImporter:
- externalObjects: {}
- defaultTextures: []
- nonModifiableTextures: []
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Plugins/Starpelly/Shaders/Blend Modes/Screen.shader b/Assets/Plugins/Starpelly/Shaders/Blend Modes/Screen.shader
deleted file mode 100644
index 1d3de4aa0..000000000
--- a/Assets/Plugins/Starpelly/Shaders/Blend Modes/Screen.shader
+++ /dev/null
@@ -1,106 +0,0 @@
-Shader "Blendmodes/Screen"
-{
- Properties
- {
- [Header(Properties)]
- _MainTex ("Blend Texture", 2D) = "white" {}
- _Tint1 ("Tint on Texture", Color) = (1,1,1,0)
- _Tint2 ("Tint on Blended Result", Color) = (1,1,1,0)
- _Alpha ("Opacity of Blended Result", Range(0.0, 1.0)) = 1.0
-
- //blending
-
- [Header(Blending)]
- [Enum(UnityEngine.Rendering.BlendMode)] _BlendSrc ("Blend mode Source", Int) = 5
- [Enum(UnityEngine.Rendering.BlendMode)] _BlendDst ("Blend mode Destination", Int) = 10
-
- // required for UI.Mask
- [Header(Stencil)]
- [Enum(UnityEngine.Rendering.CompareFunction)] _StencilComp ("Stencil Comparison", Float) = 8
- _Stencil ("Stencil ID", Float) = 0
- [Enum(UnityEngine.Rendering.StencilOp)] _StencilOp ("Stencil Operation", Float) = 0
- _StencilWriteMask ("Stencil Write Mask", Float) = 255
- _StencilReadMask ("Stencil Read Mask", Float) = 255
- [Enum(None,0,Alpha,1,Red,8,Green,4,Blue,2,RGB,14,RGBA,15)] _ColorMask("Color Mask", Int) = 15
- }
- SubShader
- {
- Tags { "Queue"="Transparent" "IgnoreProjector"="true" "RenderType"="Transparent" }
- LOD 100
- Blend [_BlendSrc] [_BlendDst]
-
- // required for UI.Mask
- Stencil
- {
- Ref [_Stencil]
- Comp [_StencilComp]
- Pass [_StencilOp]
- ReadMask [_StencilReadMask]
- WriteMask [_StencilWriteMask]
- }
-
- GrabPass
- {
- "_BackgroundTexture"
- }
-
- Pass
- {
- CGPROGRAM
- #pragma vertex vert
- #pragma fragment frag
-
- #include "UnityCG.cginc"
- #include "CGIncludes/PhotoshopBlendModes.cginc"
-
- struct appdata
- {
- float4 vertex : POSITION;
- float2 uv : TEXCOORD0;
- float4 color : COLOR;
- };
-
- struct v2f
- {
- float2 uv : TEXCOORD0;
- float4 vertex : SV_POSITION;
- float4 color : COLOR;
- float2 bguv : TEXCOORD1;
- };
-
- sampler2D _MainTex;
- fixed4 _MainTex_ST;
- fixed4 _Tint1;
- fixed4 _Tint2;
- fixed _Alpha;
-
- sampler2D _BackgroundTexture;
-
- v2f vert (appdata v)
- {
- v2f o;
- o.vertex = UnityObjectToClipPos(v.vertex);
- o.uv = TRANSFORM_TEX(v.uv, _MainTex);
- o.color = v.color;
- o.bguv = ComputeGrabScreenPos(o.vertex);
- return o;
- }
-
- fixed4 frag (v2f i) : SV_Target
- {
- fixed4 mainColor = tex2D(_BackgroundTexture, i.bguv);
- fixed4 blendColor = tex2D(_MainTex, i.uv) * i.color;
- blendColor.xyz += _Tint1.xyz * _Tint1.a;
-
-
- // perform blend
- mainColor.xyz = Screen(mainColor.xyz, blendColor.xyz);
- mainColor.xyz += _Tint2.xyz * _Tint2.a;
- mainColor.a = blendColor.a * _Alpha;
-
- return mainColor;
- }
- ENDCG
- }
- }
-}
diff --git a/Assets/Plugins/Starpelly/Shaders/Blend Modes/Screen.shader.meta b/Assets/Plugins/Starpelly/Shaders/Blend Modes/Screen.shader.meta
deleted file mode 100644
index a21b35e6e..000000000
--- a/Assets/Plugins/Starpelly/Shaders/Blend Modes/Screen.shader.meta
+++ /dev/null
@@ -1,9 +0,0 @@
-fileFormatVersion: 2
-guid: 2b7011eeda59694449ddcd78ad15ba20
-ShaderImporter:
- externalObjects: {}
- defaultTextures: []
- nonModifiableTextures: []
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Plugins/Starpelly/Shaders/Blend Modes/SoftLight.shader b/Assets/Plugins/Starpelly/Shaders/Blend Modes/SoftLight.shader
deleted file mode 100644
index 93a2228ce..000000000
--- a/Assets/Plugins/Starpelly/Shaders/Blend Modes/SoftLight.shader
+++ /dev/null
@@ -1,106 +0,0 @@
-Shader "Blendmodes/SoftLight"
-{
- Properties
- {
- [Header(Properties)]
- _MainTex ("Blend Texture", 2D) = "white" {}
- _Tint1 ("Tint on Texture", Color) = (1,1,1,0)
- _Tint2 ("Tint on Blended Result", Color) = (1,1,1,0)
- _Alpha ("Opacity of Blended Result", Range(0.0, 1.0)) = 1.0
-
- //blending
-
- [Header(Blending)]
- [Enum(UnityEngine.Rendering.BlendMode)] _BlendSrc ("Blend mode Source", Int) = 5
- [Enum(UnityEngine.Rendering.BlendMode)] _BlendDst ("Blend mode Destination", Int) = 10
-
- // required for UI.Mask
- [Header(Stencil)]
- [Enum(UnityEngine.Rendering.CompareFunction)] _StencilComp ("Stencil Comparison", Float) = 8
- _Stencil ("Stencil ID", Float) = 0
- [Enum(UnityEngine.Rendering.StencilOp)] _StencilOp ("Stencil Operation", Float) = 0
- _StencilWriteMask ("Stencil Write Mask", Float) = 255
- _StencilReadMask ("Stencil Read Mask", Float) = 255
- [Enum(None,0,Alpha,1,Red,8,Green,4,Blue,2,RGB,14,RGBA,15)] _ColorMask("Color Mask", Int) = 15
- }
- SubShader
- {
- Tags { "Queue"="Transparent" "IgnoreProjector"="true" "RenderType"="Transparent" }
- LOD 100
- Blend [_BlendSrc] [_BlendDst]
-
- // required for UI.Mask
- Stencil
- {
- Ref [_Stencil]
- Comp [_StencilComp]
- Pass [_StencilOp]
- ReadMask [_StencilReadMask]
- WriteMask [_StencilWriteMask]
- }
-
- GrabPass
- {
- "_BackgroundTexture"
- }
-
- Pass
- {
- CGPROGRAM
- #pragma vertex vert
- #pragma fragment frag
-
- #include "UnityCG.cginc"
- #include "CGIncludes/PhotoshopBlendModes.cginc"
-
- struct appdata
- {
- float4 vertex : POSITION;
- float2 uv : TEXCOORD0;
- float4 color : COLOR;
- };
-
- struct v2f
- {
- float2 uv : TEXCOORD0;
- float4 vertex : SV_POSITION;
- float4 color : COLOR;
- float2 bguv : TEXCOORD1;
- };
-
- sampler2D _MainTex;
- fixed4 _MainTex_ST;
- fixed4 _Tint1;
- fixed4 _Tint2;
- fixed _Alpha;
-
- sampler2D _BackgroundTexture;
-
- v2f vert (appdata v)
- {
- v2f o;
- o.vertex = UnityObjectToClipPos(v.vertex);
- o.uv = TRANSFORM_TEX(v.uv, _MainTex);
- o.color = v.color;
- o.bguv = ComputeGrabScreenPos(o.vertex);
- return o;
- }
-
- fixed4 frag (v2f i) : SV_Target
- {
- fixed4 mainColor = tex2D(_BackgroundTexture, i.bguv);
- fixed4 blendColor = tex2D(_MainTex, i.uv) * i.color;
- blendColor.xyz += _Tint1.xyz * _Tint1.a;
-
-
- // perform blend
- mainColor.xyz = SoftLight(mainColor.xyz, blendColor.xyz);
- mainColor.xyz += _Tint2.xyz * _Tint2.a;
- mainColor.a = blendColor.a * _Alpha;
-
- return mainColor;
- }
- ENDCG
- }
- }
-}
diff --git a/Assets/Plugins/Starpelly/Shaders/Blend Modes/SoftLight.shader.meta b/Assets/Plugins/Starpelly/Shaders/Blend Modes/SoftLight.shader.meta
deleted file mode 100644
index b6bb3a406..000000000
--- a/Assets/Plugins/Starpelly/Shaders/Blend Modes/SoftLight.shader.meta
+++ /dev/null
@@ -1,9 +0,0 @@
-fileFormatVersion: 2
-guid: 9c5c0203c153de344acd602adb1210bb
-ShaderImporter:
- externalObjects: {}
- defaultTextures: []
- nonModifiableTextures: []
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Plugins/Starpelly/Shaders/Blend Modes/Subtract.shader b/Assets/Plugins/Starpelly/Shaders/Blend Modes/Subtract.shader
deleted file mode 100644
index 1efcbbaa5..000000000
--- a/Assets/Plugins/Starpelly/Shaders/Blend Modes/Subtract.shader
+++ /dev/null
@@ -1,106 +0,0 @@
-Shader "Blendmodes/Subtract"
-{
- Properties
- {
- [Header(Properties)]
- _MainTex ("Blend Texture", 2D) = "white" {}
- _Tint1 ("Tint on Texture", Color) = (1,1,1,0)
- _Tint2 ("Tint on Blended Result", Color) = (1,1,1,0)
- _Alpha ("Opacity of Blended Result", Range(0.0, 1.0)) = 1.0
-
- //blending
-
- [Header(Blending)]
- [Enum(UnityEngine.Rendering.BlendMode)] _BlendSrc ("Blend mode Source", Int) = 5
- [Enum(UnityEngine.Rendering.BlendMode)] _BlendDst ("Blend mode Destination", Int) = 10
-
- // required for UI.Mask
- [Header(Stencil)]
- [Enum(UnityEngine.Rendering.CompareFunction)] _StencilComp ("Stencil Comparison", Float) = 8
- _Stencil ("Stencil ID", Float) = 0
- [Enum(UnityEngine.Rendering.StencilOp)] _StencilOp ("Stencil Operation", Float) = 0
- _StencilWriteMask ("Stencil Write Mask", Float) = 255
- _StencilReadMask ("Stencil Read Mask", Float) = 255
- [Enum(None,0,Alpha,1,Red,8,Green,4,Blue,2,RGB,14,RGBA,15)] _ColorMask("Color Mask", Int) = 15
- }
- SubShader
- {
- Tags { "Queue"="Transparent" "IgnoreProjector"="true" "RenderType"="Transparent" }
- LOD 100
- Blend [_BlendSrc] [_BlendDst]
-
- // required for UI.Mask
- Stencil
- {
- Ref [_Stencil]
- Comp [_StencilComp]
- Pass [_StencilOp]
- ReadMask [_StencilReadMask]
- WriteMask [_StencilWriteMask]
- }
-
- GrabPass
- {
- "_BackgroundTexture"
- }
-
- Pass
- {
- CGPROGRAM
- #pragma vertex vert
- #pragma fragment frag
-
- #include "UnityCG.cginc"
- #include "CGIncludes/PhotoshopBlendModes.cginc"
-
- struct appdata
- {
- float4 vertex : POSITION;
- float2 uv : TEXCOORD0;
- float4 color : COLOR;
- };
-
- struct v2f
- {
- float2 uv : TEXCOORD0;
- float4 vertex : SV_POSITION;
- float4 color : COLOR;
- float2 bguv : TEXCOORD1;
- };
-
- sampler2D _MainTex;
- fixed4 _MainTex_ST;
- fixed4 _Tint1;
- fixed4 _Tint2;
- fixed _Alpha;
-
- sampler2D _BackgroundTexture;
-
- v2f vert (appdata v)
- {
- v2f o;
- o.vertex = UnityObjectToClipPos(v.vertex);
- o.uv = TRANSFORM_TEX(v.uv, _MainTex);
- o.color = v.color;
- o.bguv = ComputeGrabScreenPos(o.vertex);
- return o;
- }
-
- fixed4 frag (v2f i) : SV_Target
- {
- fixed4 mainColor = tex2D(_BackgroundTexture, i.bguv);
- fixed4 blendColor = tex2D(_MainTex, i.uv) * i.color;
- blendColor.xyz += _Tint1.xyz * _Tint1.a;
-
-
- // perform blend
- mainColor.xyz = Subtract(mainColor.xyz, blendColor.xyz);
- mainColor.xyz += _Tint2.xyz * _Tint2.a;
- mainColor.a = blendColor.a * _Alpha;
-
- return mainColor;
- }
- ENDCG
- }
- }
-}
diff --git a/Assets/Plugins/Starpelly/Shaders/Blend Modes/Subtract.shader.meta b/Assets/Plugins/Starpelly/Shaders/Blend Modes/Subtract.shader.meta
deleted file mode 100644
index 9e6c7b3ba..000000000
--- a/Assets/Plugins/Starpelly/Shaders/Blend Modes/Subtract.shader.meta
+++ /dev/null
@@ -1,9 +0,0 @@
-fileFormatVersion: 2
-guid: dad2fab4a5cb39846a52481a503e6d11
-ShaderImporter:
- externalObjects: {}
- defaultTextures: []
- nonModifiableTextures: []
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Plugins/Starpelly/Shaders/Blend Modes/VividLight.shader b/Assets/Plugins/Starpelly/Shaders/Blend Modes/VividLight.shader
deleted file mode 100644
index 9096d2d42..000000000
--- a/Assets/Plugins/Starpelly/Shaders/Blend Modes/VividLight.shader
+++ /dev/null
@@ -1,106 +0,0 @@
-Shader "Blendmodes/VividLight"
-{
- Properties
- {
- [Header(Properties)]
- _MainTex ("Blend Texture", 2D) = "white" {}
- _Tint1 ("Tint on Texture", Color) = (1,1,1,0)
- _Tint2 ("Tint on Blended Result", Color) = (1,1,1,0)
- _Alpha ("Opacity of Blended Result", Range(0.0, 1.0)) = 1.0
-
- //blending
-
- [Header(Blending)]
- [Enum(UnityEngine.Rendering.BlendMode)] _BlendSrc ("Blend mode Source", Int) = 5
- [Enum(UnityEngine.Rendering.BlendMode)] _BlendDst ("Blend mode Destination", Int) = 10
-
- // required for UI.Mask
- [Header(Stencil)]
- [Enum(UnityEngine.Rendering.CompareFunction)] _StencilComp ("Stencil Comparison", Float) = 8
- _Stencil ("Stencil ID", Float) = 0
- [Enum(UnityEngine.Rendering.StencilOp)] _StencilOp ("Stencil Operation", Float) = 0
- _StencilWriteMask ("Stencil Write Mask", Float) = 255
- _StencilReadMask ("Stencil Read Mask", Float) = 255
- [Enum(None,0,Alpha,1,Red,8,Green,4,Blue,2,RGB,14,RGBA,15)] _ColorMask("Color Mask", Int) = 15
- }
- SubShader
- {
- Tags { "Queue"="Transparent" "IgnoreProjector"="true" "RenderType"="Transparent" }
- LOD 100
- Blend [_BlendSrc] [_BlendDst]
-
- // required for UI.Mask
- Stencil
- {
- Ref [_Stencil]
- Comp [_StencilComp]
- Pass [_StencilOp]
- ReadMask [_StencilReadMask]
- WriteMask [_StencilWriteMask]
- }
-
- GrabPass
- {
- "_BackgroundTexture"
- }
-
- Pass
- {
- CGPROGRAM
- #pragma vertex vert
- #pragma fragment frag
-
- #include "UnityCG.cginc"
- #include "CGIncludes/PhotoshopBlendModes.cginc"
-
- struct appdata
- {
- float4 vertex : POSITION;
- float2 uv : TEXCOORD0;
- float4 color : COLOR;
- };
-
- struct v2f
- {
- float2 uv : TEXCOORD0;
- float4 vertex : SV_POSITION;
- float4 color : COLOR;
- float2 bguv : TEXCOORD1;
- };
-
- sampler2D _MainTex;
- fixed4 _MainTex_ST;
- fixed4 _Tint1;
- fixed4 _Tint2;
- fixed _Alpha;
-
- sampler2D _BackgroundTexture;
-
- v2f vert (appdata v)
- {
- v2f o;
- o.vertex = UnityObjectToClipPos(v.vertex);
- o.uv = TRANSFORM_TEX(v.uv, _MainTex);
- o.color = v.color;
- o.bguv = ComputeGrabScreenPos(o.vertex);
- return o;
- }
-
- fixed4 frag (v2f i) : SV_Target
- {
- fixed4 mainColor = tex2D(_BackgroundTexture, i.bguv);
- fixed4 blendColor = tex2D(_MainTex, i.uv) * i.color;
- blendColor.xyz += _Tint1.xyz * _Tint1.a;
-
-
- // perform blend
- mainColor.xyz = VividLight(mainColor.xyz, blendColor.xyz);
- mainColor.xyz += _Tint2.xyz * _Tint2.a;
- mainColor.a = blendColor.a * _Alpha;
-
- return mainColor;
- }
- ENDCG
- }
- }
-}
diff --git a/Assets/Plugins/Starpelly/Shaders/Blend Modes/VividLight.shader.meta b/Assets/Plugins/Starpelly/Shaders/Blend Modes/VividLight.shader.meta
deleted file mode 100644
index cb58b4f6c..000000000
--- a/Assets/Plugins/Starpelly/Shaders/Blend Modes/VividLight.shader.meta
+++ /dev/null
@@ -1,9 +0,0 @@
-fileFormatVersion: 2
-guid: bef33988c68cc854780ec0424181377e
-ShaderImporter:
- externalObjects: {}
- defaultTextures: []
- nonModifiableTextures: []
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Plugins/Starpelly/Starpelly.cs b/Assets/Plugins/Starpelly/Starpelly.cs
deleted file mode 100644
index 570337272..000000000
--- a/Assets/Plugins/Starpelly/Starpelly.cs
+++ /dev/null
@@ -1,167 +0,0 @@
-namespace Starpelly
-{
- public enum KeyCodeWin : ushort
- {
- #region Media
- MEDIA_NEXT_TRACK = 0xb0,
- MEDIA_PREV_TRACK = 0xb1,
- MEDIA_STOP = 0xb2,
- MEDIA_PLAY_PAUSE = 0xb3,
- #endregion
-
- #region Math Functions
- MULTIPLY = 0x6a, // '*'
- ADD = 0x6b,
- SUBTRACT = 0x6d,
- DIVIDE = 0x6f,
- #endregion
-
- #region Browser
- BROWSER_BACK = 0xa6,
- BROWSER_FORWARD = 0xa7,
- BROWSER_REFRESH = 0xa8,
- BROWSER_STOP = 0xa9,
- BROWSER_SEARCH = 0xaa,
- BROWSER_FAVORITES = 0xab,
- BROWSER_HOME = 0xac,
- #endregion
-
- #region Numpad numbers
- NUMPAD0 = 0x60,
- NUMPAD1 = 0x61,
- NUMPAD2 = 0x62,
- NUMPAD3 = 0x63,
- NUMPAD4 = 0x64, // 100
- NUMPAD5 = 0x65,
- NUMPAD6 = 0x66,
- NUMPAD7 = 0x67,
- NUMPAD8 = 0x68,
- NUMPAD9 = 0x69,
- #endregion
-
- #region Function Keys
- F1 = 0x70,
- F2 = 0x71,
- F3 = 0x72,
- F4 = 0x73,
- F5 = 0x74,
- F6 = 0x75,
- F7 = 0x76,
- F8 = 0x77,
- F9 = 0x78,
- F10 = 0x79,
- F11 = 0x7a,
- F12 = 0x7b,
- F13 = 0x7c,
- F14 = 0x7d,
- F15 = 0x7e,
- F16 = 0x7f,
- F17 = 0x80,
- F18 = 0x81,
- F19 = 130,
- F20 = 0x83,
- F21 = 0x84,
- F22 = 0x85,
- F23 = 0x86,
- F24 = 0x87,
- #endregion
-
- #region Other
- // see https://lists.w3.org/Archives/Public/www-dom/2010JulSep/att-0182/keyCode-spec.html
- OEM_COLON = 0xba, // OEM_1
- OEM_102 = 0xe2,
- OEM_2 = 0xbf,
- OEM_3 = 0xc0,
- OEM_4 = 0xdb,
- OEM_BACK_SLASH = 0xdc, // OEM_5
- OEM_6 = 0xdd,
- OEM_7 = 0xde,
- OEM_8 = 0xdf,
- OEM_CLEAR = 0xfe,
- OEM_COMMA = 0xbc,
- OEM_MINUS = 0xbd, // Underscore
- OEM_PERIOD = 0xbe,
- OEM_PLUS = 0xbb,
- #endregion
-
- #region KEYS
- KEY_0 = 0x30,
- KEY_1 = 0x31,
- KEY_2 = 0x32,
- KEY_3 = 0x33,
- KEY_4 = 0x34,
- KEY_5 = 0x35,
- KEY_6 = 0x36,
- KEY_7 = 0x37,
- KEY_8 = 0x38,
- KEY_9 = 0x39,
- KEY_A = 0x41,
- KEY_B = 0x42,
- KEY_C = 0x43,
- KEY_D = 0x44,
- KEY_E = 0x45,
- KEY_F = 0x46,
- KEY_G = 0x47,
- KEY_H = 0x48,
- KEY_I = 0x49,
- KEY_J = 0x4a,
- KEY_K = 0x4b,
- KEY_L = 0x4c,
- KEY_M = 0x4d,
- KEY_N = 0x4e,
- KEY_O = 0x4f,
- KEY_P = 0x50,
- KEY_Q = 0x51,
- KEY_R = 0x52,
- KEY_S = 0x53,
- KEY_T = 0x54,
- KEY_U = 0x55,
- KEY_V = 0x56,
- KEY_W = 0x57,
- KEY_X = 0x58,
- KEY_Y = 0x59,
- KEY_Z = 0x5a,
- #endregion
-
- #region volume
- VOLUME_MUTE = 0xad,
- VOLUME_DOWN = 0xae,
- VOLUME_UP = 0xaf,
- #endregion
-
- SNAPSHOT = 0x2c,
- RIGHT_CLICK = 0x5d,
- BACKSPACE = 8,
- CANCEL = 3,
- CAPS_LOCK = 20,
- CONTROL = 0x11,
- ALT = 18,
- DECIMAL = 110,
- DELETE = 0x2e,
- DOWN = 40,
- END = 0x23,
- ESC = 0x1b,
- HOME = 0x24,
- INSERT = 0x2d,
- LAUNCH_APP1 = 0xb6,
- LAUNCH_APP2 = 0xb7,
- LAUNCH_MAIL = 180,
- LAUNCH_MEDIA_SELECT = 0xb5,
- LCONTROL = 0xa2,
- LEFT = 0x25,
- LSHIFT = 0xa0,
- LWIN = 0x5b,
- PAGEDOWN = 0x22,
- NUMLOCK = 0x90,
- PAGE_UP = 0x21,
- RCONTROL = 0xa3,
- ENTER = 13,
- RIGHT = 0x27,
- RSHIFT = 0xa1,
- RWIN = 0x5c,
- SHIFT = 0x10,
- SPACE_BAR = 0x20,
- TAB = 9,
- UP = 0x26,
- }
-}
\ No newline at end of file
diff --git a/Assets/Plugins/Starpelly/Starpelly.cs.meta b/Assets/Plugins/Starpelly/Starpelly.cs.meta
deleted file mode 100644
index aae2a33e7..000000000
--- a/Assets/Plugins/Starpelly/Starpelly.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 064d99289dbc58041b5102296a64ab2d
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Plugins/Starpelly/Textures.cs b/Assets/Plugins/Starpelly/Textures.cs
deleted file mode 100644
index 622027bf9..000000000
--- a/Assets/Plugins/Starpelly/Textures.cs
+++ /dev/null
@@ -1,21 +0,0 @@
-using UnityEngine;
-
-namespace Starpelly.Textures
-{
- public static class Draw
- {
- public static void DrawLine(this Texture2D tex, Vector2 p1, Vector2 p2, Color col)
- {
- Vector2 t = p1;
- float frac = 1 / Mathf.Sqrt(Mathf.Pow(p2.x - p1.x, 2) + Mathf.Pow(p2.y - p1.y, 2));
- float ctr = 0;
-
- while ((int)t.x != (int)p2.x || (int)t.y != (int)p2.y)
- {
- t = Vector2.Lerp(p1, p2, ctr);
- ctr += frac;
- tex.SetPixel((int)t.x, (int)t.y, col);
- }
- }
- }
-}
\ No newline at end of file
diff --git a/Assets/Plugins/Starpelly/Textures.cs.meta b/Assets/Plugins/Starpelly/Textures.cs.meta
deleted file mode 100644
index 0a2676186..000000000
--- a/Assets/Plugins/Starpelly/Textures.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 19a1d0b0761bb924cb9fcf01eea8c166
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Plugins/Starpelly/Transformer.cs b/Assets/Plugins/Starpelly/Transformer.cs
deleted file mode 100644
index 3f7fa3df4..000000000
--- a/Assets/Plugins/Starpelly/Transformer.cs
+++ /dev/null
@@ -1,13 +0,0 @@
-using UnityEngine;
-
-namespace Starpelly.Transformer
-{
- public class Scale
- {
- public static Vector3 Resize(Vector3 amount, Vector3 direction)
- {
- return new Vector3(direction.x * amount.x - 11f, direction.y * amount.y) / 2;
- // transform.localScale = new Vector3(direction.x * amount.x, direction.y * amount.y);
- }
- }
-}
\ No newline at end of file
diff --git a/Assets/Plugins/Starpelly/Transformer.cs.meta b/Assets/Plugins/Starpelly/Transformer.cs.meta
deleted file mode 100644
index 85d1cee71..000000000
--- a/Assets/Plugins/Starpelly/Transformer.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: f7d5c06c5f2795b4499cc984553af57c
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Plugins/Starpelly/Utils.cs b/Assets/Plugins/Starpelly/Utils.cs
deleted file mode 100644
index 2361b00f3..000000000
--- a/Assets/Plugins/Starpelly/Utils.cs
+++ /dev/null
@@ -1,56 +0,0 @@
-using System.Collections;
-using System.Collections.Generic;
-using UnityEngine;
-
-namespace Starpelly
-{
- public static class Utils
- {
- static Texture2D _whiteTexture;
- public static Texture2D WhiteTexture
- {
- get
- {
- if (_whiteTexture == null)
- {
- _whiteTexture = new Texture2D(1, 1);
- _whiteTexture.SetPixel(0, 0, Color.white);
- _whiteTexture.Apply();
- }
-
- return _whiteTexture;
- }
- }
-
- public static void DrawScreenRect(Rect rect, Color color)
- {
- GUI.color = color;
- GUI.DrawTexture(rect, WhiteTexture);
- GUI.color = Color.white;
- }
-
- public static void DrawScreenRectBorder(Rect rect, float thickness, Color color)
- {
- // Top
- Utils.DrawScreenRect(new Rect(rect.xMin, rect.yMin, rect.width, thickness), color);
- // Left
- Utils.DrawScreenRect(new Rect(rect.xMin, rect.yMin, thickness, rect.height), color);
- // Right
- Utils.DrawScreenRect(new Rect(rect.xMax - thickness, rect.yMin, thickness, rect.height), color);
- // Bottom
- Utils.DrawScreenRect(new Rect(rect.xMin, rect.yMax - thickness, rect.width, thickness), color);
- }
-
- public static Rect GetScreenRect(Vector3 screenPosition1, Vector3 screenPosition2)
- {
- // Move origin from bottom left to top left
- screenPosition1.y = Screen.height - screenPosition1.y;
- screenPosition2.y = Screen.height - screenPosition2.y;
- // Calculate corners
- var topLeft = Vector3.Min(screenPosition1, screenPosition2);
- var bottomRight = Vector3.Max(screenPosition1, screenPosition2);
- // Create Rect
- return Rect.MinMaxRect(topLeft.x, topLeft.y, bottomRight.x, bottomRight.y);
- }
- }
-}
diff --git a/Assets/Plugins/Starpelly/Utils.cs.meta b/Assets/Plugins/Starpelly/Utils.cs.meta
deleted file mode 100644
index a5b11c249..000000000
--- a/Assets/Plugins/Starpelly/Utils.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 7fa0c2c72f1d0c94dbe718180173f49e
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Resources/Credits.txt b/Assets/Resources/Credits.txt
index b131603aa..7671ae1c4 100644
--- a/Assets/Resources/Credits.txt
+++ b/Assets/Resources/Credits.txt
@@ -101,7 +101,7 @@ All used properties of Nintendo (such as names, audio, graphics, characters, des
IF YOU PAID FOR THIS SOFTWARE OR RECIEVED IT AS PART OF A BUNDLE FOLLOWING PAYMENT, YOU HAVE BEEN SCAMMED. CONTACT THE SELLER AND DEMAND YOUR MONEY BACK IMMEDIATELY.
-This software is licensed under GNU GPL-3.0.
+Source code for Heaven Studio is licensed under the MIT License.
https://github.com/RHeavenStudio/HeavenStudio/blob/master/LICENSE.md
https://github.com/RHeavenStudio/HeavenStudio
diff --git a/Assets/Scripts/Conductor.cs b/Assets/Scripts/Conductor.cs
index e1f96b8f3..ecf10bd0b 100644
--- a/Assets/Scripts/Conductor.cs
+++ b/Assets/Scripts/Conductor.cs
@@ -3,7 +3,6 @@ using System.Collections;
using System.Collections.Generic;
using UnityEngine;
-using Starpelly;
using Jukebox;
using HeavenStudio.Util;
using System.Data.Common;
@@ -469,7 +468,7 @@ namespace HeavenStudio
{
beat = Mathf.Max(beat, 0);
}
- float a = Mathp.Normalize(beat, (float)startBeat, (float)(startBeat + length));
+ float a = MathUtils.Normalize(beat, (float)startBeat, (float)(startBeat + length));
return a;
}
diff --git a/Assets/Scripts/GameManager.cs b/Assets/Scripts/GameManager.cs
index 9bf47831f..d401e23aa 100644
--- a/Assets/Scripts/GameManager.cs
+++ b/Assets/Scripts/GameManager.cs
@@ -5,7 +5,6 @@ using System.Linq;
using UnityEngine;
using UnityEngine.Pool;
-using Starpelly;
using Jukebox;
using HeavenStudio.Util;
using HeavenStudio.Games;
@@ -979,7 +978,7 @@ namespace HeavenStudio
}
}
}
- // newGame = gameSwitchs[gameSwitchs.IndexOf(gameSwitchs.Find(c => c.beat == Mathp.GetClosestInList(gameSwitchs.Select(c => c.beat).ToList(), beat)))].datamodel.Split(2);
+ // newGame = gameSwitchs[gameSwitchs.IndexOf(gameSwitchs.Find(c => c.beat == MathUtils.GetClosestInList(gameSwitchs.Select(c => c.beat).ToList(), beat)))].datamodel.Split(2);
}
if (!GetGameInfo(newGame).fxOnly)
@@ -1225,8 +1224,8 @@ namespace HeavenStudio
currentGame = game;
if (GetGameInfo(currentGame) != null)
{
- colMain = Colors.Hex2RGB(GetGameInfo(currentGame).color);
- CircleCursor.SetCursorColors(colMain, Colors.Hex2RGB(GetGameInfo(currentGame).splitColorL), Colors.Hex2RGB(GetGameInfo(currentGame).splitColorR));
+ colMain = StringUtils.Hex2RGB(GetGameInfo(currentGame).color);
+ CircleCursor.SetCursorColors(colMain, StringUtils.Hex2RGB(GetGameInfo(currentGame).splitColorL), StringUtils.Hex2RGB(GetGameInfo(currentGame).splitColorR));
if (useMinigameColor) HeavenStudio.StaticCamera.instance.SetAmbientGlowColour(colMain, true);
else HeavenStudio.StaticCamera.instance.SetAmbientGlowColour(Color.black, false);
}
@@ -1241,7 +1240,7 @@ namespace HeavenStudio
private void SetAmbientGlowToCurrentMinigameColor()
{
if (GetGameInfo(currentGame) != null)
- HeavenStudio.StaticCamera.instance.SetAmbientGlowColour(Colors.Hex2RGB(GetGameInfo(currentGame).color), true);
+ HeavenStudio.StaticCamera.instance.SetAmbientGlowColour(StringUtils.Hex2RGB(GetGameInfo(currentGame).color), true);
}
private bool SongPosLessThanClipLength(float t)
diff --git a/Assets/Scripts/Games/AirRally/IslandsManager.cs b/Assets/Scripts/Games/AirRally/IslandsManager.cs
index 695be038d..87186ce5d 100644
--- a/Assets/Scripts/Games/AirRally/IslandsManager.cs
+++ b/Assets/Scripts/Games/AirRally/IslandsManager.cs
@@ -1,9 +1,11 @@
-using Starpelly;
+
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
+using HeavenStudio.Util;
+
namespace HeavenStudio.Games.Scripts_AirRally
{
public class IslandsManager : MonoBehaviour
@@ -37,7 +39,7 @@ namespace HeavenStudio.Games.Scripts_AirRally
endZ = -fullLengthZ * loopMult;
foreach (var island in islands)
{
- island.normalizedOffset = 1 - Mathp.Normalize(island.startPos.z, minValueZ, maxValueZ);
+ island.normalizedOffset = 1 - MathUtils.Normalize(island.startPos.z, minValueZ, maxValueZ);
island.normalizedOffset /= loopMult;
}
}
diff --git a/Assets/Scripts/Games/CallAndResponseHandler.cs b/Assets/Scripts/Games/CallAndResponseHandler.cs
index 4b1a0ecaa..e97741cc9 100644
--- a/Assets/Scripts/Games/CallAndResponseHandler.cs
+++ b/Assets/Scripts/Games/CallAndResponseHandler.cs
@@ -1,7 +1,7 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
-using Starpelly;
+
namespace HeavenStudio.Games
{
diff --git a/Assets/Scripts/Games/CheerReaders/CheerReaders.cs b/Assets/Scripts/Games/CheerReaders/CheerReaders.cs
index 710713428..79991e176 100644
--- a/Assets/Scripts/Games/CheerReaders/CheerReaders.cs
+++ b/Assets/Scripts/Games/CheerReaders/CheerReaders.cs
@@ -1,14 +1,7 @@
using HeavenStudio.Util;
using HeavenStudio.InputSystem;
-using JetBrains.Annotations;
-using Starpelly.Transformer;
-using System;
using System.Collections.Generic;
-using System.Diagnostics;
using UnityEngine;
-using UnityEngine.Rendering;
-using static HeavenStudio.EntityTypes;
-using static HeavenStudio.Games.CheerReaders;
using Jukebox;
namespace HeavenStudio.Games.Loaders
diff --git a/Assets/Scripts/Games/DJSchool/Student.cs b/Assets/Scripts/Games/DJSchool/Student.cs
index ef40ca06f..b02bc42ed 100644
--- a/Assets/Scripts/Games/DJSchool/Student.cs
+++ b/Assets/Scripts/Games/DJSchool/Student.cs
@@ -5,7 +5,6 @@ using UnityEngine.Audio;
using DG.Tweening;
using HeavenStudio.Util;
-using Starpelly;
namespace HeavenStudio.Games.Scripts_DJSchool
{
diff --git a/Assets/Scripts/Games/DoubleDate/SoccerBall.cs b/Assets/Scripts/Games/DoubleDate/SoccerBall.cs
index 93fba73d9..a84cacfc1 100644
--- a/Assets/Scripts/Games/DoubleDate/SoccerBall.cs
+++ b/Assets/Scripts/Games/DoubleDate/SoccerBall.cs
@@ -2,7 +2,7 @@ using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
-using Starpelly;
+
using HeavenStudio.Util;
diff --git a/Assets/Scripts/Games/DrummingPractice/Drummer.cs b/Assets/Scripts/Games/DrummingPractice/Drummer.cs
index 86b318d38..faa9c2a9f 100644
--- a/Assets/Scripts/Games/DrummingPractice/Drummer.cs
+++ b/Assets/Scripts/Games/DrummingPractice/Drummer.cs
@@ -2,7 +2,7 @@ using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System;
-using Starpelly;
+
using HeavenStudio.Util;
diff --git a/Assets/Scripts/Games/DrummingPractice/DrummingPractice.cs b/Assets/Scripts/Games/DrummingPractice/DrummingPractice.cs
index 8b15bcf99..cf383a523 100644
--- a/Assets/Scripts/Games/DrummingPractice/DrummingPractice.cs
+++ b/Assets/Scripts/Games/DrummingPractice/DrummingPractice.cs
@@ -2,7 +2,7 @@ using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System;
-using Starpelly;
+
using HeavenStudio.Util;
diff --git a/Assets/Scripts/Games/FanClub/NtrIdolFan.cs b/Assets/Scripts/Games/FanClub/NtrIdolFan.cs
index 13c054069..7f3f0849b 100644
--- a/Assets/Scripts/Games/FanClub/NtrIdolFan.cs
+++ b/Assets/Scripts/Games/FanClub/NtrIdolFan.cs
@@ -2,7 +2,7 @@ using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System;
-using Starpelly;
+
using NaughtyBezierCurves;
using HeavenStudio.Util;
diff --git a/Assets/Scripts/Games/FirstContact/Translator.cs b/Assets/Scripts/Games/FirstContact/Translator.cs
index 5e63a6406..678fe557f 100644
--- a/Assets/Scripts/Games/FirstContact/Translator.cs
+++ b/Assets/Scripts/Games/FirstContact/Translator.cs
@@ -4,7 +4,7 @@ using UnityEngine;
using DG.Tweening;
using HeavenStudio.Util;
-using Starpelly;
+
namespace HeavenStudio.Games.Scripts_FirstContact
{
diff --git a/Assets/Scripts/Games/Global/Filter.cs b/Assets/Scripts/Games/Global/Filter.cs
index ef13aa217..1e915dfe7 100644
--- a/Assets/Scripts/Games/Global/Filter.cs
+++ b/Assets/Scripts/Games/Global/Filter.cs
@@ -1,7 +1,7 @@
using System;
using System.Collections.Generic;
using System.IO;
-using Starpelly;
+
using UnityEngine;
using Jukebox;
using Jukebox.Legacy;
diff --git a/Assets/Scripts/Games/MonkeyWatch/MonkeyClockArrow.cs b/Assets/Scripts/Games/MonkeyWatch/MonkeyClockArrow.cs
index 9ef8fd2a8..cd08222f8 100644
--- a/Assets/Scripts/Games/MonkeyWatch/MonkeyClockArrow.cs
+++ b/Assets/Scripts/Games/MonkeyWatch/MonkeyClockArrow.cs
@@ -2,7 +2,7 @@ using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using HeavenStudio.Util;
-using Starpelly;
+
namespace HeavenStudio.Games.Scripts_MonkeyWatch
{
@@ -52,12 +52,12 @@ namespace HeavenStudio.Games.Scripts_MonkeyWatch
if (realAngle <= 180)
{
- float normalizedAngle = Mathp.Normalize(realAngle, 0, 180);
+ float normalizedAngle = MathUtils.Normalize(realAngle, 0, 180);
x = Mathf.Lerp(0, shadowXRange, normalizedAngle);
}
else
{
- float normalizedAngle = Mathp.Normalize(realAngle, 180, 360);
+ float normalizedAngle = MathUtils.Normalize(realAngle, 180, 360);
x = Mathf.Lerp(shadowXRange, 0, normalizedAngle);
}
@@ -66,12 +66,12 @@ namespace HeavenStudio.Games.Scripts_MonkeyWatch
if (realAngleY <= 90)
{
- float normalizedAngle = Mathp.Normalize(realAngleY, 0, 90);
+ float normalizedAngle = MathUtils.Normalize(realAngleY, 0, 90);
y = Mathf.Lerp(0, shadowYRange, normalizedAngle);
}
else
{
- float normalizedAngle = Mathp.Normalize(realAngleY, 90, 180);
+ float normalizedAngle = MathUtils.Normalize(realAngleY, 90, 180);
y = Mathf.Lerp(shadowYRange, 0, normalizedAngle);
}
shadowTrans.localPosition = new Vector3(x, y);
diff --git a/Assets/Scripts/Games/MonkeyWatch/WatchBackgroundHandler.cs b/Assets/Scripts/Games/MonkeyWatch/WatchBackgroundHandler.cs
index 89f8f6bde..7260aaeeb 100644
--- a/Assets/Scripts/Games/MonkeyWatch/WatchBackgroundHandler.cs
+++ b/Assets/Scripts/Games/MonkeyWatch/WatchBackgroundHandler.cs
@@ -2,7 +2,7 @@ using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using HeavenStudio.Util;
-using Starpelly;
+
namespace HeavenStudio.Games.Scripts_MonkeyWatch
{
@@ -78,10 +78,10 @@ namespace HeavenStudio.Games.Scripts_MonkeyWatch
private void SetArrowsToTime(int hours, int minutes, int seconds)
{
- float normalizedHour = Mathp.Normalize(hours + (minutes / 60f) + (seconds / 3600f), 0f, 12f);
+ float normalizedHour = MathUtils.Normalize(hours + (minutes / 60f) + (seconds / 3600f), 0f, 12f);
anchorHour.localEulerAngles = new Vector3(0, 0, -Mathf.LerpUnclamped(0, 360, normalizedHour));
- float normalizedMinute = Mathp.Normalize(minutes + (seconds / 60f), 0, 60);
+ float normalizedMinute = MathUtils.Normalize(minutes + (seconds / 60f), 0, 60);
anchorMinute.localEulerAngles = new Vector3(0, 0, -Mathf.LerpUnclamped(0, 360, normalizedMinute));
}
}
diff --git a/Assets/Scripts/Games/RhythmTweezers/RhythmTweezers.cs b/Assets/Scripts/Games/RhythmTweezers/RhythmTweezers.cs
index 152f6e9b2..e91dc6fb4 100644
--- a/Assets/Scripts/Games/RhythmTweezers/RhythmTweezers.cs
+++ b/Assets/Scripts/Games/RhythmTweezers/RhythmTweezers.cs
@@ -2,7 +2,7 @@ using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System;
-using Starpelly;
+
using DG.Tweening;
using HeavenStudio.Util;
using HeavenStudio.InputSystem;
@@ -253,7 +253,7 @@ namespace HeavenStudio.Games
spawnedHairs.Add(hair);
hair.gameObject.SetActive(true);
hair.GetComponent().Play("SmallAppear", 0, 1);
- float rot = -58f + 116 * Mathp.Normalize((float)crEvent.relativeBeat, 0, crHandlerInstance.intervalLength - 1);
+ float rot = -58f + 116 * MathUtils.Normalize((float)crEvent.relativeBeat, 0, crHandlerInstance.intervalLength - 1);
hair.transform.eulerAngles = new Vector3(0, 0, rot);
hair.createBeat = crEvent.beat;
}
@@ -263,7 +263,7 @@ namespace HeavenStudio.Games
spawnedLongs.Add(hair);
hair.gameObject.SetActive(true);
hair.GetComponent().Play("LongAppear", 0, 1);
- float rot = -58f + 116 * Mathp.Normalize((float)crEvent.relativeBeat, 0, crHandlerInstance.intervalLength - 1);
+ float rot = -58f + 116 * MathUtils.Normalize((float)crEvent.relativeBeat, 0, crHandlerInstance.intervalLength - 1);
hair.transform.eulerAngles = new Vector3(0, 0, rot);
hair.createBeat = crEvent.beat;
}
diff --git a/Assets/Scripts/Games/RhythmTweezers/Tweezers.cs b/Assets/Scripts/Games/RhythmTweezers/Tweezers.cs
index bd4cfa526..b9eec4fa8 100644
--- a/Assets/Scripts/Games/RhythmTweezers/Tweezers.cs
+++ b/Assets/Scripts/Games/RhythmTweezers/Tweezers.cs
@@ -4,7 +4,7 @@ using UnityEngine;
using System;
using HeavenStudio.Util;
-using Starpelly;
+
namespace HeavenStudio.Games.Scripts_RhythmTweezers
{
diff --git a/Assets/Scripts/Games/WizardsWaltz/WizardsWaltz.cs b/Assets/Scripts/Games/WizardsWaltz/WizardsWaltz.cs
index 0bfc71d54..53d737fed 100644
--- a/Assets/Scripts/Games/WizardsWaltz/WizardsWaltz.cs
+++ b/Assets/Scripts/Games/WizardsWaltz/WizardsWaltz.cs
@@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using UnityEngine;
using System;
-using Starpelly;
+
using HeavenStudio.Util;
using HeavenStudio.InputSystem;
diff --git a/Assets/Scripts/GlobalGameManager.cs b/Assets/Scripts/GlobalGameManager.cs
index 2c2969a37..e9552400b 100644
--- a/Assets/Scripts/GlobalGameManager.cs
+++ b/Assets/Scripts/GlobalGameManager.cs
@@ -129,13 +129,10 @@ namespace HeavenStudio
ChangeMasterVolume(PersistentDataManager.gameSettings.masterVolume);
PlayerInput.InitInputControllers();
#if HEAVENSTUDIO_PROD && !UNITY_EDITOR
- Starpelly.OS.ChangeWindowTitle("Heaven Studio");
buildTime = Application.buildGUID.Substring(0, 8) + " " + AppInfo.Date.ToString("dd/MM/yyyy hh:mm:ss");
#elif UNITY_EDITOR
- Starpelly.OS.ChangeWindowTitle("Heaven Studio UNITYEDITOR ");
buildTime = "(EDITOR) " + System.DateTime.UtcNow.ToString("dd/MM/yyyy hh:mm:ss");
#else
- Starpelly.OS.ChangeWindowTitle("Heaven Studio (INDEV) " + Application.buildGUID.Substring(0, 8));
buildTime = Application.buildGUID.Substring(0, 8) + " " + AppInfo.Date.ToString("dd/MM/yyyy hh:mm:ss");
#endif
}
diff --git a/Assets/Scripts/LevelEditor/BeatGrid.cs b/Assets/Scripts/LevelEditor/BeatGrid.cs
index cc39b888f..f2cd17596 100644
--- a/Assets/Scripts/LevelEditor/BeatGrid.cs
+++ b/Assets/Scripts/LevelEditor/BeatGrid.cs
@@ -1,10 +1,11 @@
using System.Collections.Generic;
using System.Globalization;
-using Starpelly;
using TMPro;
using UnityEngine;
using UnityEngine.UI;
+using HeavenStudio.Util;
+
namespace HeavenStudio.Editor.Track
{
public class BeatGrid : MonoBehaviour
@@ -49,8 +50,8 @@ namespace HeavenStudio.Editor.Track
{
if (Editor.instance.fullscreen) return;
- // var x = Mathp.Round2Nearest(contentPosX, Timeline.instance.PixelsPerBeat);
- var x = Mathp.Round2Nearest(-scrollRect.content.anchoredPosition.x, Timeline.instance.PixelsPerBeat);
+ // var x = MathUtils.Round2Nearest(contentPosX, Timeline.instance.PixelsPerBeat);
+ var x = MathUtils.Round2Nearest(-scrollRect.content.anchoredPosition.x, Timeline.instance.PixelsPerBeat);
var pos = new Vector3(x, transform.localPosition.y, transform.localPosition.z);
transform.localPosition = pos;
rectTransform.anchoredPosition = new Vector3(rectTransform.anchoredPosition.x, rectTransform.anchoredPosition.y, 0);
diff --git a/Assets/Scripts/LevelEditor/BoxSelection.cs b/Assets/Scripts/LevelEditor/BoxSelection.cs
index f1c4fe655..8608bebdb 100644
--- a/Assets/Scripts/LevelEditor/BoxSelection.cs
+++ b/Assets/Scripts/LevelEditor/BoxSelection.cs
@@ -1,10 +1,10 @@
using UnityEngine;
using UnityEngine.UI;
+using HeavenStudio.Util;
using HeavenStudio.Editor.Track;
using DG.Tweening;
-using Starpelly;
namespace HeavenStudio.Editor
{
diff --git a/Assets/Scripts/LevelEditor/EditorTheme.cs b/Assets/Scripts/LevelEditor/EditorTheme.cs
index b201f2da4..fc0868d7d 100644
--- a/Assets/Scripts/LevelEditor/EditorTheme.cs
+++ b/Assets/Scripts/LevelEditor/EditorTheme.cs
@@ -7,9 +7,8 @@ using UnityEngine.UI;
using Newtonsoft.Json;
using TMPro;
-using Starpelly;
-
using HeavenStudio.Common;
+using HeavenStudio.Util;
using HeavenStudio.Editor.Track;
namespace HeavenStudio.Editor
diff --git a/Assets/Scripts/LevelEditor/EventSelector/EventPropertyPrefab.cs b/Assets/Scripts/LevelEditor/EventSelector/EventPropertyPrefab.cs
index 2f165b597..9c83f3454 100644
--- a/Assets/Scripts/LevelEditor/EventSelector/EventPropertyPrefab.cs
+++ b/Assets/Scripts/LevelEditor/EventSelector/EventPropertyPrefab.cs
@@ -5,7 +5,7 @@ using UnityEngine.UI;
using System;
using System.Linq;
using TMPro;
-using Starpelly;
+
using HeavenStudio.Util;
using Jukebox;
diff --git a/Assets/Scripts/LevelEditor/EventSelector/GridGameSelector.cs b/Assets/Scripts/LevelEditor/EventSelector/GridGameSelector.cs
index d227bb9d2..5b3d886b4 100644
--- a/Assets/Scripts/LevelEditor/EventSelector/GridGameSelector.cs
+++ b/Assets/Scripts/LevelEditor/EventSelector/GridGameSelector.cs
@@ -7,8 +7,8 @@ using UnityEngine.EventSystems;
using TMPro;
using DG.Tweening;
-using Starpelly;
+using HeavenStudio.Util;
using HeavenStudio.Editor.Track;
using System.Text;
diff --git a/Assets/Scripts/LevelEditor/EventSelector/PropertyPrefabs/BoolPropertyPrefab.cs b/Assets/Scripts/LevelEditor/EventSelector/PropertyPrefabs/BoolPropertyPrefab.cs
index 7789748f0..d62435d42 100644
--- a/Assets/Scripts/LevelEditor/EventSelector/PropertyPrefabs/BoolPropertyPrefab.cs
+++ b/Assets/Scripts/LevelEditor/EventSelector/PropertyPrefabs/BoolPropertyPrefab.cs
@@ -5,7 +5,7 @@ using UnityEngine.UI;
using System;
using System.Linq;
using TMPro;
-using Starpelly;
+
using HeavenStudio.Util;
using HeavenStudio.Editor;
diff --git a/Assets/Scripts/LevelEditor/EventSelector/PropertyPrefabs/ColorPropertyPrefab.cs b/Assets/Scripts/LevelEditor/EventSelector/PropertyPrefabs/ColorPropertyPrefab.cs
index 69b5a16e8..cc6a17625 100644
--- a/Assets/Scripts/LevelEditor/EventSelector/PropertyPrefabs/ColorPropertyPrefab.cs
+++ b/Assets/Scripts/LevelEditor/EventSelector/PropertyPrefabs/ColorPropertyPrefab.cs
@@ -5,7 +5,7 @@ using UnityEngine.UI;
using System;
using System.Linq;
using TMPro;
-using Starpelly;
+
using HeavenStudio.Util;
using HeavenStudio.Editor;
diff --git a/Assets/Scripts/LevelEditor/EventSelector/PropertyPrefabs/EnumPropertyPrefab.cs b/Assets/Scripts/LevelEditor/EventSelector/PropertyPrefabs/EnumPropertyPrefab.cs
index 2a604c6a3..777cbbd13 100644
--- a/Assets/Scripts/LevelEditor/EventSelector/PropertyPrefabs/EnumPropertyPrefab.cs
+++ b/Assets/Scripts/LevelEditor/EventSelector/PropertyPrefabs/EnumPropertyPrefab.cs
@@ -5,7 +5,7 @@ using UnityEngine.UI;
using System;
using System.Linq;
using TMPro;
-using Starpelly;
+
using HeavenStudio.Util;
using HeavenStudio.Editor;
diff --git a/Assets/Scripts/LevelEditor/EventSelector/PropertyPrefabs/NumberPropertyPrefab.cs b/Assets/Scripts/LevelEditor/EventSelector/PropertyPrefabs/NumberPropertyPrefab.cs
index 10e9b6369..f7ae3f4e0 100644
--- a/Assets/Scripts/LevelEditor/EventSelector/PropertyPrefabs/NumberPropertyPrefab.cs
+++ b/Assets/Scripts/LevelEditor/EventSelector/PropertyPrefabs/NumberPropertyPrefab.cs
@@ -5,7 +5,7 @@ using UnityEngine.UI;
using System;
using System.Linq;
using TMPro;
-using Starpelly;
+
using HeavenStudio.Util;
using HeavenStudio.Editor;
diff --git a/Assets/Scripts/LevelEditor/EventSelector/PropertyPrefabs/StringPropertyPrefab.cs b/Assets/Scripts/LevelEditor/EventSelector/PropertyPrefabs/StringPropertyPrefab.cs
index de5283ca7..4b57c9638 100644
--- a/Assets/Scripts/LevelEditor/EventSelector/PropertyPrefabs/StringPropertyPrefab.cs
+++ b/Assets/Scripts/LevelEditor/EventSelector/PropertyPrefabs/StringPropertyPrefab.cs
@@ -5,7 +5,7 @@ using UnityEngine.UI;
using System;
using System.Linq;
using TMPro;
-using Starpelly;
+
using HeavenStudio.Util;
using HeavenStudio.Editor;
diff --git a/Assets/Scripts/LevelEditor/RemixPropertiesDialog/PropertyPrefabs/BoolChartPropertyPrefab.cs b/Assets/Scripts/LevelEditor/RemixPropertiesDialog/PropertyPrefabs/BoolChartPropertyPrefab.cs
index ad034daec..bc2aebd8e 100644
--- a/Assets/Scripts/LevelEditor/RemixPropertiesDialog/PropertyPrefabs/BoolChartPropertyPrefab.cs
+++ b/Assets/Scripts/LevelEditor/RemixPropertiesDialog/PropertyPrefabs/BoolChartPropertyPrefab.cs
@@ -5,7 +5,7 @@ using UnityEngine.UI;
using System;
using System.Linq;
using TMPro;
-using Starpelly;
+
using HeavenStudio.Util;
using HeavenStudio.Editor;
diff --git a/Assets/Scripts/LevelEditor/RemixPropertiesDialog/PropertyPrefabs/ColorChartPropertyPrefab.cs b/Assets/Scripts/LevelEditor/RemixPropertiesDialog/PropertyPrefabs/ColorChartPropertyPrefab.cs
index 8a2f00793..c4f2ba605 100644
--- a/Assets/Scripts/LevelEditor/RemixPropertiesDialog/PropertyPrefabs/ColorChartPropertyPrefab.cs
+++ b/Assets/Scripts/LevelEditor/RemixPropertiesDialog/PropertyPrefabs/ColorChartPropertyPrefab.cs
@@ -5,7 +5,7 @@ using UnityEngine.UI;
using System;
using System.Linq;
using TMPro;
-using Starpelly;
+
using HeavenStudio.Util;
using HeavenStudio.Editor;
diff --git a/Assets/Scripts/LevelEditor/RemixPropertiesDialog/PropertyPrefabs/NumberChartPropertyPrefab.cs b/Assets/Scripts/LevelEditor/RemixPropertiesDialog/PropertyPrefabs/NumberChartPropertyPrefab.cs
index 4c9f40d65..e2d1acc22 100644
--- a/Assets/Scripts/LevelEditor/RemixPropertiesDialog/PropertyPrefabs/NumberChartPropertyPrefab.cs
+++ b/Assets/Scripts/LevelEditor/RemixPropertiesDialog/PropertyPrefabs/NumberChartPropertyPrefab.cs
@@ -5,7 +5,7 @@ using UnityEngine.UI;
using System;
using System.Linq;
using TMPro;
-using Starpelly;
+
using HeavenStudio.Util;
using HeavenStudio.Editor;
diff --git a/Assets/Scripts/LevelEditor/RemixPropertiesDialog/PropertyPrefabs/StringChartPropertyPrefab.cs b/Assets/Scripts/LevelEditor/RemixPropertiesDialog/PropertyPrefabs/StringChartPropertyPrefab.cs
index 228e13f84..dba52698c 100644
--- a/Assets/Scripts/LevelEditor/RemixPropertiesDialog/PropertyPrefabs/StringChartPropertyPrefab.cs
+++ b/Assets/Scripts/LevelEditor/RemixPropertiesDialog/PropertyPrefabs/StringChartPropertyPrefab.cs
@@ -5,7 +5,7 @@ using UnityEngine.UI;
using System;
using System.Linq;
using TMPro;
-using Starpelly;
+
using HeavenStudio.Util;
using HeavenStudio.Editor;
diff --git a/Assets/Scripts/LevelEditor/RemixPropertiesDialog/RemixPropertyPrefab.cs b/Assets/Scripts/LevelEditor/RemixPropertiesDialog/RemixPropertyPrefab.cs
index e3a3d78a3..a546818be 100644
--- a/Assets/Scripts/LevelEditor/RemixPropertiesDialog/RemixPropertyPrefab.cs
+++ b/Assets/Scripts/LevelEditor/RemixPropertiesDialog/RemixPropertyPrefab.cs
@@ -5,7 +5,7 @@ using UnityEngine.UI;
using System;
using System.Linq;
using TMPro;
-using Starpelly;
+
using HeavenStudio.Util;
diff --git a/Assets/Scripts/LevelEditor/Theme.cs b/Assets/Scripts/LevelEditor/Theme.cs
index f34d47d60..f6aaebaa5 100644
--- a/Assets/Scripts/LevelEditor/Theme.cs
+++ b/Assets/Scripts/LevelEditor/Theme.cs
@@ -1,6 +1,6 @@
+using HeavenStudio.Util;
using HeavenStudio.Editor.Track;
using Newtonsoft.Json;
-using Starpelly;
using System;
using System.Collections.Generic;
using UnityEngine;
diff --git a/Assets/Scripts/LevelEditor/Timeline/LayerLabel.cs b/Assets/Scripts/LevelEditor/Timeline/LayerLabel.cs
index 9bfc5ba72..f31a4aae9 100644
--- a/Assets/Scripts/LevelEditor/Timeline/LayerLabel.cs
+++ b/Assets/Scripts/LevelEditor/Timeline/LayerLabel.cs
@@ -5,7 +5,7 @@ using UnityEngine.UI;
using UnityEngine.EventSystems;
using TMPro;
-using Starpelly;
+
namespace HeavenStudio.Editor.Track
{
diff --git a/Assets/Scripts/LevelEditor/Timeline/SpecialTmeline/SpecialTimeline.cs b/Assets/Scripts/LevelEditor/Timeline/SpecialTmeline/SpecialTimeline.cs
index ca637f878..90750f7de 100644
--- a/Assets/Scripts/LevelEditor/Timeline/SpecialTmeline/SpecialTimeline.cs
+++ b/Assets/Scripts/LevelEditor/Timeline/SpecialTmeline/SpecialTimeline.cs
@@ -4,8 +4,9 @@ using UnityEngine;
using UnityEngine.UI;
using System;
+using HeavenStudio.Util;
+
using TMPro;
-using Starpelly;
using Jukebox;
using Jukebox.Legacy;
diff --git a/Assets/Scripts/LevelEditor/Timeline/Timeline.cs b/Assets/Scripts/LevelEditor/Timeline/Timeline.cs
index a3ca88899..75e3a80a4 100644
--- a/Assets/Scripts/LevelEditor/Timeline/Timeline.cs
+++ b/Assets/Scripts/LevelEditor/Timeline/Timeline.cs
@@ -6,11 +6,12 @@ using UnityEngine.UI;
using UnityEngine.EventSystems;
using TMPro;
-using Starpelly;
using Jukebox;
using Newtonsoft.Json;
using System.Linq;
+using HeavenStudio.Util;
+
namespace HeavenStudio.Editor.Track
{
public class Timeline : MonoBehaviour
@@ -41,7 +42,7 @@ namespace HeavenStudio.Editor.Track
public float VerticalZoom { get; private set; } = 1.0f;
public float MousePos2Beat { get; private set; }
public float MousePos2Layer { get; private set; }
- public float MousePos2BeatSnap => Mathp.Round2Nearest(MousePos2Beat + (SnapInterval() * 0.5f), SnapInterval());
+ public float MousePos2BeatSnap => HeavenStudio.Util.MathUtils.Round2Nearest(MousePos2Beat + (SnapInterval() * 0.5f), SnapInterval());
public bool MouseInTimeline { get; private set; }
private Vector2 relativeMousePos;
@@ -380,11 +381,6 @@ namespace HeavenStudio.Editor.Track
}
}
- public static string RandomID()
- {
- return Starpelly.Random.Strings.RandomString(Starpelly.Enums.Strings.StringType.Alphanumeric, 128);
- }
-
#endregion
private void Update()
@@ -435,7 +431,7 @@ namespace HeavenStudio.Editor.Track
var left = leftSide;
var viewportWidth = TimelineScroll.viewport.rect.width;
var localPointRec = Mathf.Lerp(left, left + (viewportWidth / Zoom),
- Mathp.Normalize(Input.mousePosition.x, viewportPos.x, viewportPos.x + viewportWidth));
+ MathUtils.Normalize(Input.mousePosition.x, viewportPos.x, viewportPos.x + viewportWidth));
var xPixels = (localPointRec * incre);
xPixels *= (Zoom);
@@ -824,7 +820,7 @@ namespace HeavenStudio.Editor.Track
}
}
int height = 200;
- Color col = Colors.Hex2RGB("727272");
+ Color col = "727272".Hex2RGB();
col.a = 0.25f;
Texture2D tex = new Texture2D(wave.Length, height, TextureFormat.RGBA32, false);
@@ -982,7 +978,7 @@ namespace HeavenStudio.Editor.Track
public float SnapToLayer(float y)
{
float size = LayerHeight();
- return Mathf.Clamp(Mathp.Round2Nearest(y, size), -size * (LayerCount - 1), 0f);
+ return Mathf.Clamp(MathUtils.Round2Nearest(y, size), -size * (LayerCount - 1), 0f);
}
public float LayerHeight()
@@ -1008,7 +1004,7 @@ namespace HeavenStudio.Editor.Track
}
else
{
- float spd = Mathp.Round2Nearest(speed, SpeedSnap);
+ float spd = MathUtils.Round2Nearest(speed, SpeedSnap);
PlaybackSpeed.transform.GetChild(3).GetComponent().text = $"Playback Speed: {spd}x";
Conductor.instance.SetTimelinePitch(spd);
PlaybackSpeed.value = spd;
diff --git a/Assets/Scripts/LevelEditor/Timeline/TimelineEventObj.cs b/Assets/Scripts/LevelEditor/Timeline/TimelineEventObj.cs
index 0b70e835b..5daa0d718 100644
--- a/Assets/Scripts/LevelEditor/Timeline/TimelineEventObj.cs
+++ b/Assets/Scripts/LevelEditor/Timeline/TimelineEventObj.cs
@@ -1,7 +1,7 @@
using UnityEngine;
using UnityEngine.UI;
-using Starpelly;
+
using Jukebox;
using TMPro;
using System.Linq;
@@ -146,7 +146,7 @@ namespace HeavenStudio.Editor.Track
public void UpdateMarker()
{
mouseOver = Timeline.instance.timelineState.selected && Timeline.instance.MouseInTimeline &&
- Timeline.instance.MousePos2Beat.IsWithin((float)entity.beat, (float)entity.beat + entity.length) &&
+ HeavenStudio.Util.MathUtils.IsBetween(Timeline.instance.MousePos2Beat, (float)entity.beat, (float)entity.beat + entity.length) &&
Timeline.instance.MousePos2Layer == (int)entity["track"];
eventLabel.overflowMode = (mouseHovering || moving || resizing || inResizeRegion) ? TextOverflowModes.Overflow : TextOverflowModes.Ellipsis;
diff --git a/Assets/Scripts/TitleManager.cs b/Assets/Scripts/TitleManager.cs
index bfb8be8a2..36476e7f9 100644
--- a/Assets/Scripts/TitleManager.cs
+++ b/Assets/Scripts/TitleManager.cs
@@ -6,7 +6,7 @@ using UnityEngine;
using HeavenStudio.Util;
using HeavenStudio.Common;
using HeavenStudio.InputSystem;
-using Starpelly;
+
using System.Linq;
using SFB;
@@ -472,7 +472,7 @@ namespace HeavenStudio
public float GetPositionFromBeat(float startBeat, float length)
{
- float a = Mathp.Normalize((float)songPosBeat, startBeat, startBeat + length);
+ float a = MathUtils.Normalize((float)songPosBeat, startBeat, startBeat + length);
return a;
}
diff --git a/Assets/Scripts/Util/MathUtils.cs b/Assets/Scripts/Util/MathUtils.cs
new file mode 100644
index 000000000..a16b52dfe
--- /dev/null
+++ b/Assets/Scripts/Util/MathUtils.cs
@@ -0,0 +1,22 @@
+using UnityEngine;
+
+namespace HeavenStudio.Util
+{
+ public static class MathUtils
+ {
+ public static float Round2Nearest(float value, float nearest)
+ {
+ return Mathf.Round(value / nearest) * nearest;
+ }
+
+ public static float Normalize(float value, float min, float max)
+ {
+ return (value - min) / (max - min);
+ }
+
+ public static bool IsBetween(this float value, float min, float max)
+ {
+ return value >= min && value <= max;
+ }
+ }
+}
\ No newline at end of file
diff --git a/Assets/Plugins/Starpelly/Enums/StringType.cs.meta b/Assets/Scripts/Util/MathUtils.cs.meta
similarity index 83%
rename from Assets/Plugins/Starpelly/Enums/StringType.cs.meta
rename to Assets/Scripts/Util/MathUtils.cs.meta
index 3dacb7019..f61536871 100644
--- a/Assets/Plugins/Starpelly/Enums/StringType.cs.meta
+++ b/Assets/Scripts/Util/MathUtils.cs.meta
@@ -1,5 +1,5 @@
fileFormatVersion: 2
-guid: 3532584dfbb5990409d145df5ede8bf5
+guid: ecfdacc9bf1519248b0b93009ed2a045
MonoImporter:
externalObjects: {}
serializedVersion: 2
diff --git a/Assets/Scripts/Util/Sound.cs b/Assets/Scripts/Util/Sound.cs
index 3ac3c44ad..21586f46a 100644
--- a/Assets/Scripts/Util/Sound.cs
+++ b/Assets/Scripts/Util/Sound.cs
@@ -1,7 +1,7 @@
using System;
using System.Collections;
using UnityEngine;
-using Starpelly;
+
namespace HeavenStudio.Util
{
@@ -287,7 +287,7 @@ namespace HeavenStudio.Util
while (bendTimer < bendTime)
{
bendTimer += Time.deltaTime;
- float normalizedProgress = Mathp.Normalize(bendTimer, 0, bendTime);
+ float normalizedProgress = MathUtils.Normalize(bendTimer, 0, bendTime);
float currentPitch = Mathf.Lerp(startingPitch, bendedPitch, normalizedProgress);
audioSource.pitch = Mathf.Min(currentPitch, bendedPitch);
yield return null;
@@ -302,7 +302,7 @@ namespace HeavenStudio.Util
while (bendTimer < bendTime)
{
bendTimer += Time.deltaTime;
- float normalizedProgress = Mathp.Normalize(bendTimer, 0, bendTime);
+ float normalizedProgress = MathUtils.Normalize(bendTimer, 0, bendTime);
float currentPitch = Mathf.Lerp(startingPitch, bendedPitch, 1 - normalizedProgress);
audioSource.pitch = Mathf.Max(currentPitch, pitch);
yield return null;
diff --git a/Assets/Scripts/Util/StringUtils.cs b/Assets/Scripts/Util/StringUtils.cs
index 769fe52d0..52e7ad4db 100644
--- a/Assets/Scripts/Util/StringUtils.cs
+++ b/Assets/Scripts/Util/StringUtils.cs
@@ -1,6 +1,8 @@
using System.Globalization;
using System.Text.RegularExpressions;
+using UnityEngine;
+
namespace HeavenStudio.Util
{
public static class StringUtils
@@ -28,5 +30,36 @@ namespace HeavenStudio.Util
"$1 $2"
);
}
+
+ public static string Color2Hex(this Color color)
+ {
+ Color32 col = (Color32)color;
+ string hex = col.r.ToString("X2") + col.g.ToString("X2") + col.b.ToString("X2");
+ return hex;
+ }
+
+ public static Color Hex2RGB(this string hex)
+ {
+ if (hex is null or "") return Color.black;
+ try
+ {
+ hex = hex.Replace("0x", "");//in case the string is formatted 0xFFFFFF
+ hex = hex.Replace("#", "");//in case the string is formatted #FFFFFF
+ byte a = 255;//assume fully visible unless specified in hex
+ byte r = byte.Parse(hex.Substring(0, 2), NumberStyles.HexNumber);
+ byte g = byte.Parse(hex.Substring(2, 2), NumberStyles.HexNumber);
+ byte b = byte.Parse(hex.Substring(4, 2), NumberStyles.HexNumber);
+ //Only use alpha if the string has enough characters
+ if (hex.Length >= 8)
+ {
+ a = byte.Parse(hex.Substring(6, 2), NumberStyles.HexNumber);
+ }
+ return new Color32(r, g, b, a);
+ }
+ catch
+ {
+ return Color.black;
+ }
+ }
}
}
\ No newline at end of file
diff --git a/CREDITS.md b/CREDITS.md
index e7b326ef5..1333dc355 100644
--- a/CREDITS.md
+++ b/CREDITS.md
@@ -45,4 +45,4 @@
* [VorbisPlugin](https://github.com/khindemit/unity-wrapper-vorbis)
## Legal Info
-This software is licensed under GNU GPL-3.0. [LICENSE.MD](https://github.com/RHeavenStudio/HeavenStudio/blob/master/LICENSE.md)
+This software is licensed under the MIT License. [LICENSE.MD](https://github.com/RHeavenStudio/HeavenStudio/blob/master/LICENSE.md)
diff --git a/LICENSE.md b/LICENSE.md
index f288702d2..866d9f30d 100644
--- a/LICENSE.md
+++ b/LICENSE.md
@@ -1,674 +1,9 @@
- GNU GENERAL PUBLIC LICENSE
- Version 3, 29 June 2007
+The MIT License (MIT)
- Copyright (C) 2007 Free Software Foundation, Inc.
- Everyone is permitted to copy and distribute verbatim copies
- of this license document, but changing it is not allowed.
+Copyright (c) 2024 RHeavenStudio
- Preamble
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
- The GNU General Public License is a free, copyleft license for
-software and other kinds of works.
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
- The licenses for most software and other practical works are designed
-to take away your freedom to share and change the works. By contrast,
-the GNU General Public License is intended to guarantee your freedom to
-share and change all versions of a program--to make sure it remains free
-software for all its users. We, the Free Software Foundation, use the
-GNU General Public License for most of our software; it applies also to
-any other work released this way by its authors. You can apply it to
-your programs, too.
-
- When we speak of free software, we are referring to freedom, not
-price. Our General Public Licenses are designed to make sure that you
-have the freedom to distribute copies of free software (and charge for
-them if you wish), that you receive source code or can get it if you
-want it, that you can change the software or use pieces of it in new
-free programs, and that you know you can do these things.
-
- To protect your rights, we need to prevent others from denying you
-these rights or asking you to surrender the rights. Therefore, you have
-certain responsibilities if you distribute copies of the software, or if
-you modify it: responsibilities to respect the freedom of others.
-
- For example, if you distribute copies of such a program, whether
-gratis or for a fee, you must pass on to the recipients the same
-freedoms that you received. You must make sure that they, too, receive
-or can get the source code. And you must show them these terms so they
-know their rights.
-
- Developers that use the GNU GPL protect your rights with two steps:
-(1) assert copyright on the software, and (2) offer you this License
-giving you legal permission to copy, distribute and/or modify it.
-
- For the developers' and authors' protection, the GPL clearly explains
-that there is no warranty for this free software. For both users' and
-authors' sake, the GPL requires that modified versions be marked as
-changed, so that their problems will not be attributed erroneously to
-authors of previous versions.
-
- Some devices are designed to deny users access to install or run
-modified versions of the software inside them, although the manufacturer
-can do so. This is fundamentally incompatible with the aim of
-protecting users' freedom to change the software. The systematic
-pattern of such abuse occurs in the area of products for individuals to
-use, which is precisely where it is most unacceptable. Therefore, we
-have designed this version of the GPL to prohibit the practice for those
-products. If such problems arise substantially in other domains, we
-stand ready to extend this provision to those domains in future versions
-of the GPL, as needed to protect the freedom of users.
-
- Finally, every program is threatened constantly by software patents.
-States should not allow patents to restrict development and use of
-software on general-purpose computers, but in those that do, we wish to
-avoid the special danger that patents applied to a free program could
-make it effectively proprietary. To prevent this, the GPL assures that
-patents cannot be used to render the program non-free.
-
- The precise terms and conditions for copying, distribution and
-modification follow.
-
- TERMS AND CONDITIONS
-
- 0. Definitions.
-
- "This License" refers to version 3 of the GNU General Public License.
-
- "Copyright" also means copyright-like laws that apply to other kinds of
-works, such as semiconductor masks.
-
- "The Program" refers to any copyrightable work licensed under this
-License. Each licensee is addressed as "you". "Licensees" and
-"recipients" may be individuals or organizations.
-
- To "modify" a work means to copy from or adapt all or part of the work
-in a fashion requiring copyright permission, other than the making of an
-exact copy. The resulting work is called a "modified version" of the
-earlier work or a work "based on" the earlier work.
-
- A "covered work" means either the unmodified Program or a work based
-on the Program.
-
- To "propagate" a work means to do anything with it that, without
-permission, would make you directly or secondarily liable for
-infringement under applicable copyright law, except executing it on a
-computer or modifying a private copy. Propagation includes copying,
-distribution (with or without modification), making available to the
-public, and in some countries other activities as well.
-
- To "convey" a work means any kind of propagation that enables other
-parties to make or receive copies. Mere interaction with a user through
-a computer network, with no transfer of a copy, is not conveying.
-
- An interactive user interface displays "Appropriate Legal Notices"
-to the extent that it includes a convenient and prominently visible
-feature that (1) displays an appropriate copyright notice, and (2)
-tells the user that there is no warranty for the work (except to the
-extent that warranties are provided), that licensees may convey the
-work under this License, and how to view a copy of this License. If
-the interface presents a list of user commands or options, such as a
-menu, a prominent item in the list meets this criterion.
-
- 1. Source Code.
-
- The "source code" for a work means the preferred form of the work
-for making modifications to it. "Object code" means any non-source
-form of a work.
-
- A "Standard Interface" means an interface that either is an official
-standard defined by a recognized standards body, or, in the case of
-interfaces specified for a particular programming language, one that
-is widely used among developers working in that language.
-
- The "System Libraries" of an executable work include anything, other
-than the work as a whole, that (a) is included in the normal form of
-packaging a Major Component, but which is not part of that Major
-Component, and (b) serves only to enable use of the work with that
-Major Component, or to implement a Standard Interface for which an
-implementation is available to the public in source code form. A
-"Major Component", in this context, means a major essential component
-(kernel, window system, and so on) of the specific operating system
-(if any) on which the executable work runs, or a compiler used to
-produce the work, or an object code interpreter used to run it.
-
- The "Corresponding Source" for a work in object code form means all
-the source code needed to generate, install, and (for an executable
-work) run the object code and to modify the work, including scripts to
-control those activities. However, it does not include the work's
-System Libraries, or general-purpose tools or generally available free
-programs which are used unmodified in performing those activities but
-which are not part of the work. For example, Corresponding Source
-includes interface definition files associated with source files for
-the work, and the source code for shared libraries and dynamically
-linked subprograms that the work is specifically designed to require,
-such as by intimate data communication or control flow between those
-subprograms and other parts of the work.
-
- The Corresponding Source need not include anything that users
-can regenerate automatically from other parts of the Corresponding
-Source.
-
- The Corresponding Source for a work in source code form is that
-same work.
-
- 2. Basic Permissions.
-
- All rights granted under this License are granted for the term of
-copyright on the Program, and are irrevocable provided the stated
-conditions are met. This License explicitly affirms your unlimited
-permission to run the unmodified Program. The output from running a
-covered work is covered by this License only if the output, given its
-content, constitutes a covered work. This License acknowledges your
-rights of fair use or other equivalent, as provided by copyright law.
-
- You may make, run and propagate covered works that you do not
-convey, without conditions so long as your license otherwise remains
-in force. You may convey covered works to others for the sole purpose
-of having them make modifications exclusively for you, or provide you
-with facilities for running those works, provided that you comply with
-the terms of this License in conveying all material for which you do
-not control copyright. Those thus making or running the covered works
-for you must do so exclusively on your behalf, under your direction
-and control, on terms that prohibit them from making any copies of
-your copyrighted material outside their relationship with you.
-
- Conveying under any other circumstances is permitted solely under
-the conditions stated below. Sublicensing is not allowed; section 10
-makes it unnecessary.
-
- 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
-
- No covered work shall be deemed part of an effective technological
-measure under any applicable law fulfilling obligations under article
-11 of the WIPO copyright treaty adopted on 20 December 1996, or
-similar laws prohibiting or restricting circumvention of such
-measures.
-
- When you convey a covered work, you waive any legal power to forbid
-circumvention of technological measures to the extent such circumvention
-is effected by exercising rights under this License with respect to
-the covered work, and you disclaim any intention to limit operation or
-modification of the work as a means of enforcing, against the work's
-users, your or third parties' legal rights to forbid circumvention of
-technological measures.
-
- 4. Conveying Verbatim Copies.
-
- You may convey verbatim copies of the Program's source code as you
-receive it, in any medium, provided that you conspicuously and
-appropriately publish on each copy an appropriate copyright notice;
-keep intact all notices stating that this License and any
-non-permissive terms added in accord with section 7 apply to the code;
-keep intact all notices of the absence of any warranty; and give all
-recipients a copy of this License along with the Program.
-
- You may charge any price or no price for each copy that you convey,
-and you may offer support or warranty protection for a fee.
-
- 5. Conveying Modified Source Versions.
-
- You may convey a work based on the Program, or the modifications to
-produce it from the Program, in the form of source code under the
-terms of section 4, provided that you also meet all of these conditions:
-
- a) The work must carry prominent notices stating that you modified
- it, and giving a relevant date.
-
- b) The work must carry prominent notices stating that it is
- released under this License and any conditions added under section
- 7. This requirement modifies the requirement in section 4 to
- "keep intact all notices".
-
- c) You must license the entire work, as a whole, under this
- License to anyone who comes into possession of a copy. This
- License will therefore apply, along with any applicable section 7
- additional terms, to the whole of the work, and all its parts,
- regardless of how they are packaged. This License gives no
- permission to license the work in any other way, but it does not
- invalidate such permission if you have separately received it.
-
- d) If the work has interactive user interfaces, each must display
- Appropriate Legal Notices; however, if the Program has interactive
- interfaces that do not display Appropriate Legal Notices, your
- work need not make them do so.
-
- A compilation of a covered work with other separate and independent
-works, which are not by their nature extensions of the covered work,
-and which are not combined with it such as to form a larger program,
-in or on a volume of a storage or distribution medium, is called an
-"aggregate" if the compilation and its resulting copyright are not
-used to limit the access or legal rights of the compilation's users
-beyond what the individual works permit. Inclusion of a covered work
-in an aggregate does not cause this License to apply to the other
-parts of the aggregate.
-
- 6. Conveying Non-Source Forms.
-
- You may convey a covered work in object code form under the terms
-of sections 4 and 5, provided that you also convey the
-machine-readable Corresponding Source under the terms of this License,
-in one of these ways:
-
- a) Convey the object code in, or embodied in, a physical product
- (including a physical distribution medium), accompanied by the
- Corresponding Source fixed on a durable physical medium
- customarily used for software interchange.
-
- b) Convey the object code in, or embodied in, a physical product
- (including a physical distribution medium), accompanied by a
- written offer, valid for at least three years and valid for as
- long as you offer spare parts or customer support for that product
- model, to give anyone who possesses the object code either (1) a
- copy of the Corresponding Source for all the software in the
- product that is covered by this License, on a durable physical
- medium customarily used for software interchange, for a price no
- more than your reasonable cost of physically performing this
- conveying of source, or (2) access to copy the
- Corresponding Source from a network server at no charge.
-
- c) Convey individual copies of the object code with a copy of the
- written offer to provide the Corresponding Source. This
- alternative is allowed only occasionally and noncommercially, and
- only if you received the object code with such an offer, in accord
- with subsection 6b.
-
- d) Convey the object code by offering access from a designated
- place (gratis or for a charge), and offer equivalent access to the
- Corresponding Source in the same way through the same place at no
- further charge. You need not require recipients to copy the
- Corresponding Source along with the object code. If the place to
- copy the object code is a network server, the Corresponding Source
- may be on a different server (operated by you or a third party)
- that supports equivalent copying facilities, provided you maintain
- clear directions next to the object code saying where to find the
- Corresponding Source. Regardless of what server hosts the
- Corresponding Source, you remain obligated to ensure that it is
- available for as long as needed to satisfy these requirements.
-
- e) Convey the object code using peer-to-peer transmission, provided
- you inform other peers where the object code and Corresponding
- Source of the work are being offered to the general public at no
- charge under subsection 6d.
-
- A separable portion of the object code, whose source code is excluded
-from the Corresponding Source as a System Library, need not be
-included in conveying the object code work.
-
- A "User Product" is either (1) a "consumer product", which means any
-tangible personal property which is normally used for personal, family,
-or household purposes, or (2) anything designed or sold for incorporation
-into a dwelling. In determining whether a product is a consumer product,
-doubtful cases shall be resolved in favor of coverage. For a particular
-product received by a particular user, "normally used" refers to a
-typical or common use of that class of product, regardless of the status
-of the particular user or of the way in which the particular user
-actually uses, or expects or is expected to use, the product. A product
-is a consumer product regardless of whether the product has substantial
-commercial, industrial or non-consumer uses, unless such uses represent
-the only significant mode of use of the product.
-
- "Installation Information" for a User Product means any methods,
-procedures, authorization keys, or other information required to install
-and execute modified versions of a covered work in that User Product from
-a modified version of its Corresponding Source. The information must
-suffice to ensure that the continued functioning of the modified object
-code is in no case prevented or interfered with solely because
-modification has been made.
-
- If you convey an object code work under this section in, or with, or
-specifically for use in, a User Product, and the conveying occurs as
-part of a transaction in which the right of possession and use of the
-User Product is transferred to the recipient in perpetuity or for a
-fixed term (regardless of how the transaction is characterized), the
-Corresponding Source conveyed under this section must be accompanied
-by the Installation Information. But this requirement does not apply
-if neither you nor any third party retains the ability to install
-modified object code on the User Product (for example, the work has
-been installed in ROM).
-
- The requirement to provide Installation Information does not include a
-requirement to continue to provide support service, warranty, or updates
-for a work that has been modified or installed by the recipient, or for
-the User Product in which it has been modified or installed. Access to a
-network may be denied when the modification itself materially and
-adversely affects the operation of the network or violates the rules and
-protocols for communication across the network.
-
- Corresponding Source conveyed, and Installation Information provided,
-in accord with this section must be in a format that is publicly
-documented (and with an implementation available to the public in
-source code form), and must require no special password or key for
-unpacking, reading or copying.
-
- 7. Additional Terms.
-
- "Additional permissions" are terms that supplement the terms of this
-License by making exceptions from one or more of its conditions.
-Additional permissions that are applicable to the entire Program shall
-be treated as though they were included in this License, to the extent
-that they are valid under applicable law. If additional permissions
-apply only to part of the Program, that part may be used separately
-under those permissions, but the entire Program remains governed by
-this License without regard to the additional permissions.
-
- When you convey a copy of a covered work, you may at your option
-remove any additional permissions from that copy, or from any part of
-it. (Additional permissions may be written to require their own
-removal in certain cases when you modify the work.) You may place
-additional permissions on material, added by you to a covered work,
-for which you have or can give appropriate copyright permission.
-
- Notwithstanding any other provision of this License, for material you
-add to a covered work, you may (if authorized by the copyright holders of
-that material) supplement the terms of this License with terms:
-
- a) Disclaiming warranty or limiting liability differently from the
- terms of sections 15 and 16 of this License; or
-
- b) Requiring preservation of specified reasonable legal notices or
- author attributions in that material or in the Appropriate Legal
- Notices displayed by works containing it; or
-
- c) Prohibiting misrepresentation of the origin of that material, or
- requiring that modified versions of such material be marked in
- reasonable ways as different from the original version; or
-
- d) Limiting the use for publicity purposes of names of licensors or
- authors of the material; or
-
- e) Declining to grant rights under trademark law for use of some
- trade names, trademarks, or service marks; or
-
- f) Requiring indemnification of licensors and authors of that
- material by anyone who conveys the material (or modified versions of
- it) with contractual assumptions of liability to the recipient, for
- any liability that these contractual assumptions directly impose on
- those licensors and authors.
-
- All other non-permissive additional terms are considered "further
-restrictions" within the meaning of section 10. If the Program as you
-received it, or any part of it, contains a notice stating that it is
-governed by this License along with a term that is a further
-restriction, you may remove that term. If a license document contains
-a further restriction but permits relicensing or conveying under this
-License, you may add to a covered work material governed by the terms
-of that license document, provided that the further restriction does
-not survive such relicensing or conveying.
-
- If you add terms to a covered work in accord with this section, you
-must place, in the relevant source files, a statement of the
-additional terms that apply to those files, or a notice indicating
-where to find the applicable terms.
-
- Additional terms, permissive or non-permissive, may be stated in the
-form of a separately written license, or stated as exceptions;
-the above requirements apply either way.
-
- 8. Termination.
-
- You may not propagate or modify a covered work except as expressly
-provided under this License. Any attempt otherwise to propagate or
-modify it is void, and will automatically terminate your rights under
-this License (including any patent licenses granted under the third
-paragraph of section 11).
-
- However, if you cease all violation of this License, then your
-license from a particular copyright holder is reinstated (a)
-provisionally, unless and until the copyright holder explicitly and
-finally terminates your license, and (b) permanently, if the copyright
-holder fails to notify you of the violation by some reasonable means
-prior to 60 days after the cessation.
-
- Moreover, your license from a particular copyright holder is
-reinstated permanently if the copyright holder notifies you of the
-violation by some reasonable means, this is the first time you have
-received notice of violation of this License (for any work) from that
-copyright holder, and you cure the violation prior to 30 days after
-your receipt of the notice.
-
- Termination of your rights under this section does not terminate the
-licenses of parties who have received copies or rights from you under
-this License. If your rights have been terminated and not permanently
-reinstated, you do not qualify to receive new licenses for the same
-material under section 10.
-
- 9. Acceptance Not Required for Having Copies.
-
- You are not required to accept this License in order to receive or
-run a copy of the Program. Ancillary propagation of a covered work
-occurring solely as a consequence of using peer-to-peer transmission
-to receive a copy likewise does not require acceptance. However,
-nothing other than this License grants you permission to propagate or
-modify any covered work. These actions infringe copyright if you do
-not accept this License. Therefore, by modifying or propagating a
-covered work, you indicate your acceptance of this License to do so.
-
- 10. Automatic Licensing of Downstream Recipients.
-
- Each time you convey a covered work, the recipient automatically
-receives a license from the original licensors, to run, modify and
-propagate that work, subject to this License. You are not responsible
-for enforcing compliance by third parties with this License.
-
- An "entity transaction" is a transaction transferring control of an
-organization, or substantially all assets of one, or subdividing an
-organization, or merging organizations. If propagation of a covered
-work results from an entity transaction, each party to that
-transaction who receives a copy of the work also receives whatever
-licenses to the work the party's predecessor in interest had or could
-give under the previous paragraph, plus a right to possession of the
-Corresponding Source of the work from the predecessor in interest, if
-the predecessor has it or can get it with reasonable efforts.
-
- You may not impose any further restrictions on the exercise of the
-rights granted or affirmed under this License. For example, you may
-not impose a license fee, royalty, or other charge for exercise of
-rights granted under this License, and you may not initiate litigation
-(including a cross-claim or counterclaim in a lawsuit) alleging that
-any patent claim is infringed by making, using, selling, offering for
-sale, or importing the Program or any portion of it.
-
- 11. Patents.
-
- A "contributor" is a copyright holder who authorizes use under this
-License of the Program or a work on which the Program is based. The
-work thus licensed is called the contributor's "contributor version".
-
- A contributor's "essential patent claims" are all patent claims
-owned or controlled by the contributor, whether already acquired or
-hereafter acquired, that would be infringed by some manner, permitted
-by this License, of making, using, or selling its contributor version,
-but do not include claims that would be infringed only as a
-consequence of further modification of the contributor version. For
-purposes of this definition, "control" includes the right to grant
-patent sublicenses in a manner consistent with the requirements of
-this License.
-
- Each contributor grants you a non-exclusive, worldwide, royalty-free
-patent license under the contributor's essential patent claims, to
-make, use, sell, offer for sale, import and otherwise run, modify and
-propagate the contents of its contributor version.
-
- In the following three paragraphs, a "patent license" is any express
-agreement or commitment, however denominated, not to enforce a patent
-(such as an express permission to practice a patent or covenant not to
-sue for patent infringement). To "grant" such a patent license to a
-party means to make such an agreement or commitment not to enforce a
-patent against the party.
-
- If you convey a covered work, knowingly relying on a patent license,
-and the Corresponding Source of the work is not available for anyone
-to copy, free of charge and under the terms of this License, through a
-publicly available network server or other readily accessible means,
-then you must either (1) cause the Corresponding Source to be so
-available, or (2) arrange to deprive yourself of the benefit of the
-patent license for this particular work, or (3) arrange, in a manner
-consistent with the requirements of this License, to extend the patent
-license to downstream recipients. "Knowingly relying" means you have
-actual knowledge that, but for the patent license, your conveying the
-covered work in a country, or your recipient's use of the covered work
-in a country, would infringe one or more identifiable patents in that
-country that you have reason to believe are valid.
-
- If, pursuant to or in connection with a single transaction or
-arrangement, you convey, or propagate by procuring conveyance of, a
-covered work, and grant a patent license to some of the parties
-receiving the covered work authorizing them to use, propagate, modify
-or convey a specific copy of the covered work, then the patent license
-you grant is automatically extended to all recipients of the covered
-work and works based on it.
-
- A patent license is "discriminatory" if it does not include within
-the scope of its coverage, prohibits the exercise of, or is
-conditioned on the non-exercise of one or more of the rights that are
-specifically granted under this License. You may not convey a covered
-work if you are a party to an arrangement with a third party that is
-in the business of distributing software, under which you make payment
-to the third party based on the extent of your activity of conveying
-the work, and under which the third party grants, to any of the
-parties who would receive the covered work from you, a discriminatory
-patent license (a) in connection with copies of the covered work
-conveyed by you (or copies made from those copies), or (b) primarily
-for and in connection with specific products or compilations that
-contain the covered work, unless you entered into that arrangement,
-or that patent license was granted, prior to 28 March 2007.
-
- Nothing in this License shall be construed as excluding or limiting
-any implied license or other defenses to infringement that may
-otherwise be available to you under applicable patent law.
-
- 12. No Surrender of Others' Freedom.
-
- If conditions are imposed on you (whether by court order, agreement or
-otherwise) that contradict the conditions of this License, they do not
-excuse you from the conditions of this License. If you cannot convey a
-covered work so as to satisfy simultaneously your obligations under this
-License and any other pertinent obligations, then as a consequence you may
-not convey it at all. For example, if you agree to terms that obligate you
-to collect a royalty for further conveying from those to whom you convey
-the Program, the only way you could satisfy both those terms and this
-License would be to refrain entirely from conveying the Program.
-
- 13. Use with the GNU Affero General Public License.
-
- Notwithstanding any other provision of this License, you have
-permission to link or combine any covered work with a work licensed
-under version 3 of the GNU Affero General Public License into a single
-combined work, and to convey the resulting work. The terms of this
-License will continue to apply to the part which is the covered work,
-but the special requirements of the GNU Affero General Public License,
-section 13, concerning interaction through a network will apply to the
-combination as such.
-
- 14. Revised Versions of this License.
-
- The Free Software Foundation may publish revised and/or new versions of
-the GNU General Public License from time to time. Such new versions will
-be similar in spirit to the present version, but may differ in detail to
-address new problems or concerns.
-
- Each version is given a distinguishing version number. If the
-Program specifies that a certain numbered version of the GNU General
-Public License "or any later version" applies to it, you have the
-option of following the terms and conditions either of that numbered
-version or of any later version published by the Free Software
-Foundation. If the Program does not specify a version number of the
-GNU General Public License, you may choose any version ever published
-by the Free Software Foundation.
-
- If the Program specifies that a proxy can decide which future
-versions of the GNU General Public License can be used, that proxy's
-public statement of acceptance of a version permanently authorizes you
-to choose that version for the Program.
-
- Later license versions may give you additional or different
-permissions. However, no additional obligations are imposed on any
-author or copyright holder as a result of your choosing to follow a
-later version.
-
- 15. Disclaimer of Warranty.
-
- THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
-APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
-HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
-OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
-THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
-IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
-ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
-
- 16. Limitation of Liability.
-
- IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
-WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
-THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
-GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
-USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
-DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
-PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
-EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
-SUCH DAMAGES.
-
- 17. Interpretation of Sections 15 and 16.
-
- If the disclaimer of warranty and limitation of liability provided
-above cannot be given local legal effect according to their terms,
-reviewing courts shall apply local law that most closely approximates
-an absolute waiver of all civil liability in connection with the
-Program, unless a warranty or assumption of liability accompanies a
-copy of the Program in return for a fee.
-
- END OF TERMS AND CONDITIONS
-
- How to Apply These Terms to Your New Programs
-
- If you develop a new program, and you want it to be of the greatest
-possible use to the public, the best way to achieve this is to make it
-free software which everyone can redistribute and change under these terms.
-
- To do so, attach the following notices to the program. It is safest
-to attach them to the start of each source file to most effectively
-state the exclusion of warranty; and each file should have at least
-the "copyright" line and a pointer to where the full notice is found.
-
-
- Copyright (C)
-
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see .
-
-Also add information on how to contact you by electronic and paper mail.
-
- If the program does terminal interaction, make it output a short
-notice like this when it starts in an interactive mode:
-
- Copyright (C)
- This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
- This is free software, and you are welcome to redistribute it
- under certain conditions; type `show c' for details.
-
-The hypothetical commands `show w' and `show c' should show the appropriate
-parts of the General Public License. Of course, your program's commands
-might be different; for a GUI interface, you would use an "about box".
-
- You should also get your employer (if you work as a programmer) or school,
-if any, to sign a "copyright disclaimer" for the program, if necessary.
-For more information on this, and how to apply and follow the GNU GPL, see
-.
-
- The GNU General Public License does not permit incorporating your program
-into proprietary programs. If your program is a subroutine library, you
-may consider it more useful to permit linking proprietary applications with
-the library. If this is what you want to do, use the GNU Lesser General
-Public License instead of this License. But first, please read
-.
+THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
\ No newline at end of file
diff --git a/ProjectSettings/SatorImaging.UnitySourceGenerator.Editor.ProjectSettingsData.asset b/ProjectSettings/SatorImaging.UnitySourceGenerator.Editor.ProjectSettingsData.asset
index 494e998a6..432158c98 100644
--- a/ProjectSettings/SatorImaging.UnitySourceGenerator.Editor.ProjectSettingsData.asset
+++ b/ProjectSettings/SatorImaging.UnitySourceGenerator.Editor.ProjectSettingsData.asset
@@ -17,21 +17,8 @@ MonoBehaviour:
DenseViewWidthThreshold: 512
_disableAutoReloadInBackground: 0
ImportedScriptPaths:
- - Assets/Scripts/Minigames.cs
- - Assets/Editor/CreateAssetBundles.cs
- - Assets/Editor/CreateMinigameScriptTemplate.cs
- - Assets/Scripts/Games/Minigame.cs
- - Assets/Scripts/Games/FanClub/FanClub.cs
- - Assets/Scripts/GameManager.cs
- - Assets/Editor/SpritesheetScaler.cs
- - Assets/Scripts/USG.g/LoadMinigames.Minigames.MinigameLoaderGenerator.g.cs
- - Assets/Scripts/Games/TheDazzles/TheDazzles.cs
- - Assets/Scripts/Games/FirstContact/FirstContact.cs
- - Assets/Scripts/SourceGenerators/ControllerLoaderGenerator.cs
- - Assets/Scripts/InputSystem/PlayerInput.cs
- - Assets/Scripts/JudgementManager.cs
- - Assets/Scripts/LevelEditor/RemixPropertiesDialog/PropertyPrefabs/RatingScreenPropertyDialog.cs
- Assets/Scripts/GlobalGameManager.cs
+ - Assets/Scripts/Util/StringUtils.cs
- Assets/Scripts/Games/KarateMan/KarateMan.cs
- Assets/Scripts/Games/KarateMan/KarateManJoe.cs
- Assets/Scripts/Games/KarateMan/KarateManNoriController.cs
diff --git a/README.md b/README.md
index 24993d578..780488d58 100644
--- a/README.md
+++ b/README.md
@@ -46,4 +46,4 @@ and programmed with [Visual Studio Code](https://code.visualstudio.com/).
Build Instructions: [BUILD.md](https://github.com/megaminerjenny/HeavenStudio/blob/master/BUILD.md) (or the more maintained [documentation page](https://rheavenstudio.github.io/docs-contributing/setup/introduction))
## Other information
-Rhythm Heaven is the intellectual property of Nintendo. This program is NOT endorsed nor sponsored in any way by Nintendo. All used properties of Nintendo (such as names, audio, graphics, etc.) in this software are not intended to maliciously infringe trademark rights. All other trademarks and assets are property of their respective owners. This is a community project and this is available for others to use according to the GPL-3.0 license, without charge.
+Rhythm Heaven is the intellectual property of Nintendo. This program is NOT endorsed nor sponsored in any way by Nintendo. All used properties of Nintendo (such as names, audio, graphics, etc.) in this software are not intended to maliciously infringe trademark rights. All other trademarks and assets are property of their respective owners. This is a free community project available for others to use and contribute to, without charge. Source code is licensed under the MIT license.