Make a material that do a transition between two textures
I am doing a cable material (to make notice the player if is on or off) and I have a problem.
I need to do a material that changes to blue texture to yellow texture. Thats easy and I can do it. The problem is: I want to maje that blend (blue to yellow) in the cable direction (like a progress bar, that fills from left to right. I want the same to my material. The bar is blue and it fills from left to right with yellow)
Anyone knows how can Do that? I haven't see any tutorial for that, only for material blend (all the material)
Thanks or the help!
asked Feb 09 '16 at 05:16 PM in Blueprint Scripting
Inside your material:
You can use a simple linear gradient and a scalar parameter, so you can compare them with "IF" and plug the results on your "lerp" alpha.
Inside your blueprints you can create a dynamic material so you change the scalar parameter with a timeline when you want and it will result on a "linear wipe" effect, wich i think is what you want.
answered Feb 09 '16 at 10:15 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here