Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

How to: text gradient fill?

$
0
0
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?

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>