-
-
Save kirillrybin/1ab0a9a0b2f68af593cd2b51254879c5 to your computer and use it in GitHub Desktop.
Unlit Color Shader with Alpha support
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/UnlitAlpha" { | |
Properties{ | |
_Color("Color", Color) = (0, 0, 0, 0.5) | |
} | |
SubShader{ | |
Lighting Off | |
ZWrite Off | |
Cull Back | |
Blend SrcAlpha OneMinusSrcAlpha | |
Tags{ "Queue" = "Transparent" } | |
Color[_Color] | |
Pass{ | |
} | |
} | |
FallBack "Unlit/Transparent" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment