How to blend between 3 colors with if nodes

I’m trying to rap my head around how I might go about blending between 3 colors using if nodes using a scalar of 0 - 1.

0 = red
.5 = green
1 = blue

So I the idea is that as you increase the scalar it should transition between the colors.

1 Like

image

1 Like

For a scalable and controllable solution you can create a Curve Atlas asset and sample curves from it in the material.