Page 1 of 1

How to make a font glow?

Posted: Tue Feb 16, 2021 8:09 pm
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

Re: How to make a font glow?

Posted: Tue Feb 16, 2021 11:49 pm
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!

Re: How to make a font glow?

Posted: Thu Feb 18, 2021 12:43 am
by lbcheche
Hello, groverburger.

I'm going to try this.

Thanks.

Re: How to make a font glow?

Posted: Thu Feb 18, 2021 4:39 am
by lbcheche
Hello, groverburger.

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

Thanks again!!!

Re: How to make a font glow?

Posted: Sun Feb 21, 2021 3:21 am
by togFox
I'd love to see a screenie of this effect for science. :)