Hey all. What I'm trying to get done is basically a Lerp between three textures. For the sake of discussion, assume we're talking about unreal, as our engine's material creator has similar nodes. My problem is that Lerp usually supports just 2 nodes. The material gets fed a variable that goes between 0..1 range. I need 0…
The problem is that the variable that's being fed into the material is just a single variable that goes from 0 to 1. So I'm not sure how to use just part of it with the lerp nodes.
Basically what cryid said. If you need to interpolate between three values, then use 3 nodes: ----( 0 - .5 )LERP_NODE--| |---- texA | ---- texB | | value01(0-1)---|LERP_NODE | | | ----( .51 - 1 )LERP_NODE--| ---- texB ---- texC maybe thats not what youre after, but hope it helps. *edit: lost all the formatting... Basically…
Hmm, that doesn't quite do it. It actually works nice for 0 and 1, but at 0.5 it blends between all 3 colors. Attachment not found. At 0.5 I would expect it to be fully blue (the center color), but instead it blends between all 3. Hope I'm clear.
you could use an "if" node if your engine has one since it has 3 outputs? you'd need one of the states to be exactly equal to though so it would work as a switch rather than a soft blending. what sort of variable is it you want to pass to this part of the network? i've had a quick play with using multiple lerps and come up…