环形进度条的Shader
Shader "Custom/SprFill"
{
Properties
{
[Toggle] _Clockwise ("是否顺时针?", Float) = 0
_MainColor("Color",Color) = (1,0,0,1)
[PerRendererData] _MainTex ("Base (RGB) Trans (A)", 2D) = "white" {}
_Angle("Pie Angle",Range(0,360)) = 360
}
SubShader
{
Tags
{
"Queue"="Transparent"
"IgnoreProjector"="True"
"RenderType"="Transparent"
"PreviewType"="Plane"
"CanUseSpriteAtlas"="True"
}
Cull Off
Lighting Off
ZWrite Off
Blend SrcAlpha OneMinusSrcAlpha
Pass
{
CGPROGRAM
#pragma vertex vert
#pragma fragment frag
#pragma target 2.0
#pragma multi_c