Last active
August 29, 2015 14:02
-
-
Save lucabelluccini/434edc94d33b93fb11bc to your computer and use it in GitHub Desktop.
Self Lit, Alpha channel (global), Texture mapped to UV, Overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Shader "Custom/Shader4SHUD" { | |
Properties { | |
_MainTex ("Texture", 2D) = "white" { } | |
_Alpha ("Alpha", Range(0.0,1.0)) = 1.0 | |
} | |
SubShader { | |
Tags { Queue = Overlay } | |
ZWrite Off | |
Blend SrcAlpha OneMinusSrcAlpha | |
Pass { | |
SetTexture[_MainTex] { | |
constantColor(0,0,0,[_Alpha]) | |
combine texture, texture * constant | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment