Most often when you use textures, you use static images. With Three.js, however, it is also possible to create interactive textures. In this recipe, we will show you how you can use an HTML5 canvas element as an input for your texture.
So i have this mesh of a neon sign. I want it to be one of those animated signs so the lights turn on and off. I have created 2 different materials for both positions of the sign (as seen in the picture attached).
what i want to know is how can i make the mesh switch between the two materials every second or so.
if anyone could show me how to set this up as a blueprint i would really appreciate it
and just incase it helps ive attached a picture of my material setup.
Since you have two different materials you can reference them inside your Blueprint and create a function that loops every second. Here’s a basic setup that will work for you:
And here are the material paremeters (I just used a dummy mat but you can change it to suit your needs):
And here’s the result with the above setup: [Result on imgur][4]