123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- Shader "Hidden/UI Default ETC1 (Soft Masked)"
- {
- // ETC1-version (with alpha split texture) of SoftMask.shader.
- // In Unity 5.3 this shader is the same as SoftMask.shader and it's never used.
- Properties
- {
- [PerRendererData] _MainTex("Sprite Texture", 2D) = "white" {}
- [PerRendererData] _AlphaTex("Sprite Alpha Texture", 2D) = "white" {}
- _Color("Tint", Color) = (1,1,1,1)
- [PerRendererData] _SoftMask("Mask", 2D) = "white" {}
- _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
- }
- 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
- #if UNITY_VERSION >= 201720
- #pragma multi_compile __ UNITY_UI_CLIP_RECT
- #endif
- #pragma multi_compile __ UNITY_UI_ALPHACLIP
- #pragma multi_compile __ SOFTMASK_SIMPLE SOFTMASK_SLICED SOFTMASK_TILED
- #if UNITY_VERSION >= 540
- # define SOFTMASK_ETC1
- #endif
- #include "SoftMaskTemplate.cginc"
- ENDCG
- }
- }
- }
- // UNITY_SHADER_NO_UPGRADE
|