Changing material colors.

Hello.
I have dynamic material, that have two colors (two vector params) and one ScalarParameter.
I need to change color from one to second smoothly, ie white color must be changed gradually with ScalarParameter.
I tried to use Lerp

http://s6.postimg.org/pgc9o1d69/screenshot_112.png

but, it’s mixing colors. Instead of gradually change from one of colors to second, it’s mixing that colors and it could get, for example, green color instead of white or black.

How to smoothly change colors from one to second, without mixing of that colors?

Thank you!

Hi . I think you can`t. In any case you must mixing color. Only what you can do use Lerp for each channel with not equal alfa one moment change. I hope this helpful.

I don’t exaclty know how he done the color changing and I don’t know if that is what you need, but look at this video Tron Glow tutorial - Unreal 4 - YouTube he smoothly change the color. Hope that was you needed :slight_smile: