Transparent/Cutout/Unlit shader + smooth fade out

Hi folks,

I don’t know much about shaders so I hope you can help me out. I use billboards to show digits in 3d space and use this transparent, unlit shader:

Shader "Transparent/Cutout/Unlit" {
Properties 
{
	_Color ("Main Color", Color) = (1,1,1,1)
	_MainTex ("Texture", 2D) = "white" {}
	_Cutoff ("Alpha cutoff", Range(0,1)) = 0.5
}

SubShader 
{
	Cull Off
	Tags 
	{
		"Queue" = "Transparent" 
		"IgnoreProjector" = "True" 
		"RenderType" = "TransparentCutoff"
	}
	Pass
	{
		Alphatest Greater [_Cutoff]
		AlphaToMask True
		ColorMask RGB

		SetTexture [_MainTex] 
		{
			Combine texture, texture
		}
	}
}

}

Now I want to smoothly fade the digit in and out by modifying the alpha value of the main color, but I don’t know how to. Can anybody help me out?

You can’t smoothly fade using a transparent cutout shader…with cutout, you either have 100% transparency or 0% transparency.

–Eric

Oh yeah, makes sense :confused: Thanks for explaining. I took a shader from the wiki without cutout, works great.