Im pretty new to this and I have what is probably a fairly basic question. Im importing 60 images as different textures. They are each of a number in a particular font which will count down from 59 to 0 and then in my scene a plane will have its material cycle through the different textures every second(to create a countdown timer).
I was going to use the method discussed in this post to update the texture:
Here is the example:
My question is, to create these 60 textures and then do the repeat wrapping on them, is there a better way than writing this code out 60 times?
var tex059 = textureLoader.load('assets/numbers/059.png'); tex059.wrapS = THREE.RepeatWrapping; tex059.wrapT = THREE.RepeatWrapping; tex059.repeat.set(1,1);
Let me know if more info is needed.