I'm trying to make a simple diffuse shader in Unity, though with a global alpha value. So you add a texture (without alpha), and then define an alpha value in the shader (float between 0 and 1.) The entire texture then is transparent.
This is what I already have, it's just the most basic diffuse shader you can image, though I'm stuck at adding the alpha.
Properties
{
_Alpha ("Alpha", Range (0.0,1.0)) = 0.0
_MainTex ("Base (RGB) Transparency (A)", 2D) = "" { }
}
SubShader
{
Pass
{
SetTexture [_MainTex] { combine texture }
}
}
Thanks,