From d69611d66431e28ea35477c6781a00d57ae04fa3 Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 7 Apr 2021 21:13:03 +0800 Subject: =?UTF-8?q?*=E5=9B=A0=E4=B8=BA=E6=B2=A1=E6=9C=89meta=EF=BC=8C?= =?UTF-8?q?=E5=AF=BC=E8=87=B4missing=EF=BC=8C=E5=88=A0=E9=99=A4UIEffect?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Test/UIEffect/Resources/UIDissolve.shader | 87 ------------------------ 1 file changed, 87 deletions(-) delete mode 100644 Assets/Test/UIEffect/Resources/UIDissolve.shader (limited to 'Assets/Test/UIEffect/Resources/UIDissolve.shader') diff --git a/Assets/Test/UIEffect/Resources/UIDissolve.shader b/Assets/Test/UIEffect/Resources/UIDissolve.shader deleted file mode 100644 index 1f48a1d..0000000 --- a/Assets/Test/UIEffect/Resources/UIDissolve.shader +++ /dev/null @@ -1,87 +0,0 @@ -Shader "Hidden/UI/Default (UIDissolve)" -{ - Properties - { - [PerRendererData] _MainTex ("Main Texture", 2D) = "white" {} - _Color ("Tint", Color) = (1,1,1,1) - - _StencilComp ("Stencil Comparison", Float) = 8 - _Stencil ("Stencil ID", Float) = 0 - _StencilOp ("Stencil Operation", Float) = 0 - _StencilWriteMask ("Stencil Write Mask", Float) = 255 - _StencilReadMask ("Stencil Read Mask", Float) = 255 - - _ColorMask ("Color Mask", Float) = 15 - - [Toggle(UNITY_UI_ALPHACLIP)] _UseUIAlphaClip ("Use Alpha Clip", Float) = 0 - - [Header(Dissolve)] - _TransitionTex ("Transition Texture (A)", 2D) = "white" {} - _ParamTex ("Parameter Texture", 2D) = "white" {} - } - - SubShader - { - Tags - { - "Queue"="Transparent" - "IgnoreProjector"="True" - "RenderType"="Transparent" - "PreviewType"="Plane" - "CanUseSpriteAtlas"="True" - } - - Stencil - { - Ref [_Stencil] - Comp [_StencilComp] - Pass [_StencilOp] - ReadMask [_StencilReadMask] - WriteMask [_StencilWriteMask] - } - - Cull Off - Lighting Off - ZWrite Off - ZTest [unity_GUIZTestMode] - Blend SrcAlpha OneMinusSrcAlpha - ColorMask [_ColorMask] - - Pass - { - Name "Default" - - CGPROGRAM - #pragma vertex vert - #pragma fragment frag - #pragma target 2.0 - - #define DISSOLVE 1 - #pragma multi_compile __ UNITY_UI_ALPHACLIP - #pragma multi_compile __ ADD SUBTRACT FILL - - #include "UnityCG.cginc" - #include "UnityUI.cginc" - - #define UI_DISSOLVE 1 - #include "UIEffect.cginc" - #include "UIEffectSprite.cginc" - - fixed4 frag(v2f IN) : SV_Target - { - half4 color = (tex2D(_MainTex, IN.texcoord) + _TextureSampleAdd) * IN.color; - color.a *= UnityGet2DClipping(IN.worldPosition.xy, _ClipRect); - - // Dissolve - color = ApplyTransitionEffect(color, IN.eParam); - - #ifdef UNITY_UI_ALPHACLIP - clip (color.a - 0.001); - #endif - - return color; - } - ENDCG - } - } -} -- cgit v1.1-26-g67d0