Hello guys, I am beginner in UE, using it for architecture, so I am not programmer I want to create material that imitates led light that is passing from one color to another, so it goes from with, yellow, orange, red, green… etc, and it loops. Tried to find on youtube but everybody use blueprints for transition between colors, and I think this is possible just in material, but I have problem how to use so much colors for emission (found way for two) so can somebody please make some fast scheme of material?
It is quite possible, indeed.
Step 1, create the material:
[SPOILER]
http://image.prntscr.com/image/5d144763d142419d81aea47fb239c7f1.png
[/SPOILER]
Step 2, add some nodes:
[SPOILER]
http://image.prntscr.com/image/740e65fcd43249c0b574d9071ff8024f.png
[/SPOILER]
Tnx bro, I am gonna try and inform you I was trying with 2xlerp in lerp but then it blends color… now I tried with rotator ,but you answered just on time to stop with that experiment
done everything but not working
Ok I made it, it works but not in best way, need twitch sine. when sine is 0 then the power emision is low, also it is very difficult to made colors go by order. So sine makes very good transition from colors but it is very bad transition of emissive multiply.
Done change multiply and sine with linear sine, now everything work fine, but rectangle sine would be much better for my light trapeze sine would be much better.
a quick way to get something very close to a square wave is to multiply a sine by a large value and clamping the result to 0-1.
yea that was good point, gotta try, i want my light to stay couple seconds on one color, and with regular sine it just go without stopping.