Skip to content

Instantly share code, notes, and snippets.

@kirillrybin
Created May 11, 2016 06:33
Show Gist options
  • Save kirillrybin/1ab0a9a0b2f68af593cd2b51254879c5 to your computer and use it in GitHub Desktop.
Save kirillrybin/1ab0a9a0b2f68af593cd2b51254879c5 to your computer and use it in GitHub Desktop.
Unlit Color Shader with Alpha support
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