Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions com.unity.shadergraph/Documentation~/Inverse-Lerp-Node.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Returns the linear parameter that produces the interpolant specified by input **

**Inverse Lerp** is the inverse operation of the [Lerp Node](Lerp-Node.md). It can be used to determine what the input to a [Lerp](Lerp-Node.md) was based on its output.

For example, the value of a **Lerp** between 0 and 2 with a **T** value of 1 is 0.5. Therefore the value of an **Inverse Lerp** between 0 and 2 with a **T** value of 0.5 is 1.
For example, the value of a **Lerp** between 0 and 2 with a **T** value of 0.5 is 1. Therefore the value of an **Inverse Lerp** between 0 and 2 with a **T** value of 1 is 0.5.

## Ports

Expand All @@ -26,4 +26,4 @@ void Unity_InverseLerp_float4(float4 A, float4 B, float4 T, out float4 Out)
{
Out = (T - A)/(B - A);
}
```
```