0 votes

I have tried for several hours to find how to make a sprite visible if not the light is hitting it. All I have come across is how to make it visible when light is hitting it.
COLOR = vec4(texture(TEXTURE, UV).rgb, 0.0);
I found out that this give me exactly what I don't want but this:
COLOR = vec4(texture(TEXTURE, UV).rgb, 0.0);
don't do anything at all.

I have been trying to learn shaders in the past but stopped because it's so complex and there is almost no learning resources, do you know of any?
Btw I am using it for tilemap
Thanks for your time. And especially thanks for you if you know the answer

Godot version 3.2
in Engine by (18 points)

Please log in or register to answer this question.

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.