This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
0 votes

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:

https://images-wixmp-ed30a86b8c4ca887773594c2.wixmp.com/f/8a0e780e-4138-42bb-a3c1-216461713b7c/d7yipqh-eb5b257a-e40e-4ba9-95c3-49f9d20bc2d0.gif?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJ1cm46YXBwOjdlMGQxODg5ODIyNjQzNzNhNWYwZDQxNWVhMGQyNmUwIiwic3ViIjoidXJuOmFwcDo3ZTBkMTg4OTgyMjY0MzczYTVmMGQ0MTVlYTBkMjZlMCIsImF1ZCI6WyJ1cm46c2VydmljZTpmaWxlLmRvd25sb2FkIl0sIm9iaiI6W1t7InBhdGgiOiIvZi84YTBlNzgwZS00MTM4LTQyYmItYTNjMS0yMTY0NjE3MTNiN2MvZDd5aXBxaC1lYjViMjU3YS1lNDBlLTRiYTktOTVjMy00OWY5ZDIwYmMyZDAuZ2lmIn1dXX0.Jmhi0yhzi4Wd3o_Rpwqvp57IQdN1-eyl6-o1F5TlTaE

(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.

in Engine by (72 points)

1 Answer

+1 vote
Best answer

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 :)
https://godotengine.org/asset-library/asset/449

by (271 points)
selected by

Thank you :D

helped a lot, the alpha tip was killer!

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.