Godot Version
4.3
Question
Hello,
I’m pretty new to this whole shader stuff and already built myself a few very small shaders (for example changing the color of a sprit). Now there will be light in my 2d game and I want the sprite only to be visible when it gets shined on.
I already found the light()
function and the light_only
render mode. But I really dont know how to use the light()
function properly and light_only
adds some unwanted transparency to the sprite and changes the original color to a very light version of it.
Anybody got an idea on how to handle that problem?
Best regards,
Michael