This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using UnityEngine; | |
using UnityEditor; | |
using System.Linq; | |
using System.Reflection; | |
/// This just exposes the Sorting Layer / Order in MeshRenderer since it's there | |
/// but not displayed in the inspector. Getting MeshRenderer to render in front | |
/// of a SpriteRenderer is pretty hard without this. | |
/// Adapted from https://gist.github.com/sinbad/bd0c49bc462289fa1a018ffd70d806e3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HEADER | |
{ | |
CompileTargets = ( IS_SM_50 && ( PC || VULKAN ) ); | |
Description = "Retro Pixelation + Low Bit Colour + Dither Post Effect"; | |
} | |
FEATURES | |
{ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Sandbox; | |
using Sandbox.UI; | |
internal class RadialFill : Panel | |
{ | |
public float BorderWidth { get; set; } = 20; | |
public float EdgeGap { get; set; } = 2; | |
public int Points { get; set; } = 64; |