ProtoFlux:Value Lerp: Difference between revisions

From Resonite Wiki
Created a page for the Value Lerp node.
 
Added a suggestion note.
 
Line 16: Line 16:
The '''Value Lerp''' node takes in a starting point and an ending point along with a lerp value of which it lerps linearly towards, then returns the value over time.
The '''Value Lerp''' node takes in a starting point and an ending point along with a lerp value of which it lerps linearly towards, then returns the value over time.


This is clamped meaning that you are stuck with being in between the <code>From</code> and <code>To</code> values.
This is clamped, meaning that you are stuck with being in between the <code>From</code> and <code>To</code> values.
 
{{Note|If you need the lerp to not be bounded by the start and end values, use the [[ProtoFlux:Value Lerp Unclamped|Value Lerp Unclamped]] node instead.|suggestion}}


== Inputs ==
== Inputs ==

Latest revision as of 13:37, 2 July 2024

Lerp
From
*
To
Lerp
Interpolation

The Value Lerp node takes in a starting point and an ending point along with a lerp value of which it lerps linearly towards, then returns the value over time.

This is clamped, meaning that you are stuck with being in between the From and To values.

If you need the lerp to not be bounded by the start and end values, use the Value Lerp Unclamped node instead.

Inputs

From (Pseudo-Generic)

The starting point of this lerp.

To (Pseudo-Generic)

The ending point of this lerp.

Lerp (float)

The lerp value between the start and end points.

Outputs

* (Pseudo-Generic)

Returns the value currently being lerped.