How to make a font glow?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
lbcheche
Prole
Posts: 3
Joined: Tue Feb 16, 2021 3:10 pm

How to make a font glow?

Post by lbcheche »

Hello everyone,

I need to develop a game asset that makes a letter or a text glow using some random font.
Is there any built-in feature or a library that could make a font glow?

Thanks
User avatar
groverburger
Prole
Posts: 49
Joined: Tue Oct 30, 2018 9:27 pm

Re: How to make a font glow?

Post by groverburger »

The easiest way to achieve this effect would probably be with shaders.
When drawing text, I would first draw the text with a blur or glow shader, and then draw the text normally on top of that.

Moonshine is a helpful library of shaders, and it includes some glow and blur effects.
Here's the link: https://github.com/vrld/moonshine

Hope that helps!
lbcheche
Prole
Posts: 3
Joined: Tue Feb 16, 2021 3:10 pm

Re: How to make a font glow?

Post by lbcheche »

Hello, groverburger.

I'm going to try this.

Thanks.
lbcheche
Prole
Posts: 3
Joined: Tue Feb 16, 2021 3:10 pm

Re: How to make a font glow?

Post by lbcheche »

Hello, groverburger.

Worked perfectly with "boxblur" effect, just like you suggested.
And it was awesome with "godsray".

Thanks again!!!
User avatar
togFox
Party member
Posts: 774
Joined: Sat Jan 30, 2021 9:46 am
Location: Brisbane, Oztralia

Re: How to make a font glow?

Post by togFox »

I'd love to see a screenie of this effect for science. :)
Current project:
https://togfox.itch.io/backyard-gridiron-manager
American football manager/sim game - build and manage a roster and win season after season
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 69 guests