Skip to content

Instantly share code, notes, and snippets.

@weshardee
Last active April 24, 2016 17:09
Show Gist options
  • Save weshardee/f1407e2738cd987830c000522bfa95c8 to your computer and use it in GitHub Desktop.
Save weshardee/f1407e2738cd987830c000522bfa95c8 to your computer and use it in GitHub Desktop.
// Flat planes (quads) with solid colors that can be faded. Great for placeholder elements or a full screen fade-to-grey quad behind your pause menu for that extra smooth feel.
Shader "2D/Color Only Alpha"
{
Properties
{
_Color ("Main Color", Color) = (1,1,1,1)
}
Category
{
ZWrite Off
Tags {"Queue" = "Transparent" }
Blend SrcAlpha OneMinusSrcAlpha
SubShader
{
Pass
{
Color [_Color]
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment