Question : Does anyone know how to change material color without the lerp node?

Because when I lerp the color it will also show the in-between value
For Example. If I lerp from red to blue it also shows the purple color I need a direct change in color with transition animation

Here is the example what i wanted
https://youtu.be/mxNwyrTl1Z8

Try adding step before the lerp

1 Like

I just tried to make that with step but it still blends between the color and for some reason, it inverts color like if I use red then the actual output color will be blue I don’t know why that happens though.

Please show your implementation, it will be easier to help you,

1 Like

you want an instant switch between two colors? you could just add a round node to your lerp so 0 - 0.5 is red, 0.5 - 1 is blue?

or use an if statement node where a = 0, b=1. if a < b - blue. if a == b, red. then just set a as a parameter then 0 = blue and 1 = red

1 Like

I just rememberd, theres a static switch node, you could try using that, probably cleaner then what i mentioned

1 Like

Here is the solution if you want to animate the color in material.

Here is the example video
https://youtu.be/-4z3ImugEmY

1 Like