Website Header Slim

Derive Node Reference

Lerp Node

Description

The Lerp node performs a linear interpolation between two values A and B, based on Alpha. Alpha determines the fraction or weight of each input on the blend. If Alpha equals 1, the output equals B and if it equals 0, the output equals A. For values between 0 and 1 the linear interpolation is performed calculating the weighted blend of A and B.

Sample Tree

Properties

Property Name Property Type Description
A
Float
Uniform float to be used as input for the lerp operation (only available if the A-input is not connected).
B
Float
Uniform float to be used as input for the lerp operation (only available if the B-input is not connected).
Alpha
Float Slider
Uniform interpolation value or blend weight by which the linear interpolation is performed (only available if the B-input is not connected).

Inputs

Input Name Allowed Data Types Description
A
Float, RGBA
Input that takes the first texture for the lerp operation.
B
Float, RGBA
Input that takes the second texture for the lerp operation.
Alpha
Float, RGBA
Input that take the texture used as interpolation value or blend weight by which the linear interpolation is performed pixelwise.

Outputs

Output Name Data Type Description
Result
Float if all inputs are of type float, otherwise RGBA.
Outputs a linear interpolation between A and B, whereas the value of every channel for every pixel is lerped between A and B based on Alpha. Alpha can be different for each pixel, if the Alpha input is connected, otherwise Alpha will be uniform for all pixels (see properties).

Login