I have 2 sprites, and when I apply the exact same shader to them, the normal sprite works and the animated one doesnt work. the shader is supposed to distort the sprite so that one side is taller and one side is shorter. The abstract blue wallpaper sprite ($WallpaperTexture) is working as intended, while the animated yellow rectangle ($CustomizationOutline) is Not. The entire thing is made taller and each frame is shorter than the last. How can I fix this shader to work with an animated sprite as well?
Shader not working on animated sprite
- Edited
I haven't done anything with animated sprites before, but it looks to me like there is a bit of a "skewing" effect on the AnimatedSprite it's likely just the coordinate spaces are different so you might need to normalize your values perhaps and then apply appropriately. Hopefully someone with more familiarity in AnimatedSprites can help further.
edit: in fact it might stem from the button that is the parent there.
a year later
Megalomaniak added the Godot Help tag .