What is lerp in general?
So as the titel says, I constantly get to see this lerp thing that gets used heavily within materials. But what exactly is it, what does the term lerp define?
asked Dec 23 '14 at 12:01 AM in Using UE4
Lerp is slang for Linear Interpolate. Given two different inputs A and B, think of a straight line drawn between them - with the Alpha node saying how far along that line you are.
For example, lets say you have a red color [1,0,0] in A - and a blue color [0,0,1] in B. If you set the Alpha to 0.5 (50%), then the Lerp will output a dark purplish color [0.5,0,0.5] - or halfway between each of the X Y and Z components linearly (and independently btw - hence the loss in brightness in this example).
They're great for mixing two materials together. Also very handy for masking out parts of your mesh. Let's say you feed the Alpha with an actual mask texture - wherever there is white you'll get one input and where there is black you'll get the other. Use greys for blending. But anyways, that's the general idea.
answered Dec 23 '14 at 12:19 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here