I am trying to achieve an effect like you can see in the gif.
After trying out a few possibilites I feel like the best way to achieve this effect is to use a shader mask on a sprite.
How can I rotate the shader independently from the sprite itself?
I am using a shader script with fragment() to set the alpha value of the masked pixels to zero. I think I could add a "uniform float amount : hint_range(0, 360);" to get the rotation angle as a parameter for the AnimationPlayer. But how can I do the rotation of the texture itself?
Or is there an easier / better way to do this?
Thanks!