Best way to animate a texture on a mesh?

Godot Version

4.3.1

Question

I thought about two methods to animate a texture on a MeshInstance3D’s material:

  1. Use a shader to replace the texture over time.
  2. Use a SubViewport to show a 2D animated scene on the mesh.

Which method has better performance? Is there any better way to do it?
It is important for my needs to do it on a mesh, cannot use other nodes like Sprite3D.

1 Like