1. Home
  2. Docs
  3. Noises
  4. Selectors
  5. Lerp

Lerp

Blends the module A and the module B using a linear interpolation.

Alpha value will choose the output value. If the alpha value is 0, module A value will be selected. If the alpha value is 1, module B will be selected. A value of 0.5 means half of the module A value and half of the module B value.

Alpha ranges from 0 to 1.

 

Node inputs/outputs

The module constructor needs:

The output value is a Generation Module

 

Examples

Lerp a checkerboard and a sine with alpha value = 0.2

Lerp a checkerboard and a sine with alpha value = 0.5

Lerp a checkerboard and a sine with alpha value = 0.8

 

Was this article helpful to you? Yes No

How can we help?