123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- Shader "CompassNavigatorPro/MiniMap Overlay Unlit Clamped"
- {
- Properties
- {
- _Color ("Main Color", Color) = (1,1,1,1)
- _MainTex ("Base (RGB) Trans (A)", 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
- }
- SubShader
- {
- Tags
- {
- "Queue"="Transparent+100"
- "IgnoreProjector"="True"
- "RenderType"="Transparent"
- "DisableBatching"="LODFading"
- }
- Cull Off
- ZWrite Off
- ZTest Always
- Blend SrcAlpha OneMinusSrcAlpha
-
- Pass
- {
- CGPROGRAM
- #pragma vertex vert
- #pragma fragment frag
- #include "UnityCG.cginc"
- struct appdata
- {
- float4 vertex : POSITION;
- float2 uv : TEXCOORD0;
- half4 color : COLOR;
- };
- struct v2f
- {
- float4 vertex : SV_POSITION;
- float2 uv : TEXCOORD0;
- half4 color : COLOR;
- };
- sampler2D _MainTex;
- float4 _MainTex_ST;
- fixed4 _Color;
- v2f vert (appdata v)
- {
- v2f o;
- o.vertex = UnityObjectToClipPos(v.vertex);
- o.uv = TRANSFORM_TEX(v.uv, _MainTex);
- o.color = v.color;
- return o;
- }
-
- fixed4 frag (v2f i) : SV_Target
- {
- half4 col = tex2D(_MainTex, i.uv) * i.color;
- col *= _Color;
- return col;
- }
- ENDCG
- }
- }
- FallBack Off
- }
|