UE4 - How to smoothly blend 3 colors from top to bottom and control gradient strenght?

You can also do this with a custom node like so:


float3 Col;
Col = lerp(C, B, UVGrad/Middle)*step(UVGrad,Middle);
Col += lerp(B,A,((UVGrad-Middle)/(1-Middle)))*step(Middle,UVGrad);
return Col;

4 Likes