← All ideas
  • Published 30 May 2022

Lerp for Geometry and Material Nodes

Add an option or new node to do Linear Interpolation in Nodes, maybe add to the Math and Vector Math nodes. lerpn.png

The value can be already calculated with A + t(B - A), this would just reduce the node count needed.

95%

Development Status: Done

Hulifier
30 May 2022

7 Comments

2
Hulifier Author

So, should this be marked as In Development? Im not sure, since what will be added is a new node, and this idea was for adding to the Math and Vector Math nodes. I think I can manipulate the title a bit to mark it as In Development.

MrTheRich

For those who couldn't find this like me: It's now called Mix: Float/Vector

modormoder

Can this be considered done? Interpolation nodes have been added.

vincentlalancette

I personally use the color mix node for vectors but yeah, a proper lerp for floats would be appreciated.

Hulifier Author

The problem with the Mix RGB is that it clamps the factor, that means that it can't extrapolate values. But if what's desired is just to interpolate, Mix RGB is the simplest way.

vincentlalancette

Oh yeah you're right, totally forgot about extrapolation.