Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Before you make a thread asking for help, read this
- Posts: 1
- Joined: Sun Aug 05, 2018 11:59 pm
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?
- Posts: 74
- Joined: Sun Feb 14, 2016 1:13 pm
I guess you could draw the text to a canvas, and apply the shader to that.
- Party member
- Posts: 1685
- Joined: Mon Jun 17, 2013 12:00 pm
An on-screen pixel coordinate is passed into the shader function. You can leverage it to make such effects.
Users browsing this forum: Baidu [Spider] and 7 guests