Anyone know how to do a glowing shader in 2D?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By FelipeRattu

I’m new to shaders and trying to learn but i need to get something done and don’t find any tutorials on that.

i need a glowing shader for a 2D game that kind of looks like this:


(sorry for this gigantic monstrocity of a link)

the only thing i know about shaders is how to make they move their vertexes (up, down, left and right) and paint them with different flat colors :S i have no idea of how to do this effect.

:bust_in_silhouette: Reply From: Xian

There are a lot of ways such as setting the render to unshaded and using the fragment function and changing the alpha value higher and lower.
or tampering with the light function.

but the quickest is modifying someone else’s code :slight_smile:
https://godotengine.org/asset-library/asset/449

Thank you :smiley:

helped a lot, the alpha tip was killer!

FelipeRattu | 2020-02-21 11:10