Page 1 of 1

How to make a gradient across multiple

Posted: Mon Aug 06, 2018 12:08 am
by themerone
How can I apply a gradient shader across multiple characters of text?

It seems that Love renders each glyph to a separate texture which makes this very difficult. Is there a workaround?

Re: How to make a gradient across multiple

Posted: Thu Aug 09, 2018 6:04 pm
by steVeRoll
I guess you could draw the text to a canvas, and apply the shader to that.

Re: How to make a gradient across multiple

Posted: Fri Aug 10, 2018 5:35 pm
by raidho36
An on-screen pixel coordinate is passed into the shader function. You can leverage it to make such effects.