Godot Version
A simple shader that changes/multiplies the UV of a texture applied to an AnimatedSprite2D with any SpriteFrames. I’m attempting to make an animated beam whose UV.x scales along with the scale of the AnimatedSprite, but UV won’t work on the AnimatedSprite for some reason.
Question
How can I apply a UV shader on an AnimatedSprite2D? The usual solutions didn’t work (searching docs, searching for answers on this forum, etc.)
Something tells me it’s the SpriteFrames blocking the UV from the actual texture, but I’m not sure.
uniform float scale_x = 2.0;
void fragment() {
vec2 uv = UV;
uv.x *= scale_x;
// Does not change anything at all with the texture. Using a hard-coded value doesn't work either.