I want to make similar effect we had in DF GUI, where text color can be gradient. I'm using custom material with build-in UI/Text shader, changing it to something like this:
half4 frag (v2f i) : COLOR
{
half4 col = i.color;
col.a *= tex2D(_MainTex, i.texcoord).a;
col = col * _Color * tex2D(_MainTex, i.texcoord);
clip (col.a - 0.01);
return col;
}
where in...
How to: text gradient fill?
half4 frag (v2f i) : COLOR
{
half4 col = i.color;
col.a *= tex2D(_MainTex, i.texcoord).a;
col = col * _Color * tex2D(_MainTex, i.texcoord);
clip (col.a - 0.01);
return col;
}
where in...
How to: text gradient fill?