0 votes

The basic idea is that a part of a sprite changes color when the player is close. Therefore i thought get the distance of the player and the fragment( pixel ) and check if it is lower than a specific threshold. To only change a part of the sprite check if the color of the pixel is equal and then change it to the illuminated color. I struggeled to implement this idea since i am farily new to shader programming. Can someone please help me? My goal is to recreated this cool effect which i recently saw on pinterest.


Godot version Godot 3.3.2
in Engine by (16 points)

I am also interested in this question

1 Answer

0 votes
by (7,038 points)
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 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 webmaster@godotengine.org with your username.