Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Shader "UITexture" {
- Properties {
- _MainTex("Alpha Blended (RGBA) ", 2D) = "white" {}
- } SubShader {
- Pass {
- CGPROGRAM
- #pragma fragment frag
- float4 frag(float4 srcPos : VPOS) : COLOR {
- return float4(1.0, 0.0, 0.0, 0.5);
- }
- ENDCG
- Blend SrcAlpha OneMinusSrcAlpha
- ZWrite Off
- Cull Off
- Fog { Mode Off }
- BindChannels {
- Bind "vertex", vertex
- Bind "texcoord", texcoord
- }
- SetTexture [_MainTex] {}
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement