You can animate the uv offset via GDScript and a Spatial material, you don't need a custom shader for this.
onready var your_mat = get_node("YourMesh").get_surface_material(0)
func _physics_process(delta):
your_mat.uv1_offset += Vector3(0.25, 0, 0) * delta