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?