does anyone know how to make this shader code to make a movement on the texture more optimized so that it can be changed during the game without sudden cuts
shader_type canvas_item;
uniform vec2 dir = vec2(0.1,-0.0);
uniform float speed = 2.0f;
void fragment(){
vec4 color = texture(TEXTURE, UV + (dir* TIME * speed));
COLOR = color;
}