Silhouette with Visual Shader

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

Hi there, I just try to do something very simple.

I have a sprite with a texture (animating) which is the child of a Node2D.

The Parent has a Visual Shader attached which deformes the vertexes (it’s a water mirror shader)

For the fragment shader I just thought it would be correct like I did in the image:

enter image description here

For me, the alpha is the current alpha value of the sprite. But all I get is a big colored rectangle instead of a silhouette

So what I am doing wrong here?