ideally you’d only use the first two lines of the loop, that adjusts the pivot point of UV coordinates. Call it one time (when the mesh is loaded). After that use material uv rotation as that executes cheaply on GPU vs changing mesh on CPU each frame.
2 Likes
Very fair point, just wrote some quick code to prove an idea
1 Like