Method Lerp
Lerp(LensSettings, LensSettings, float)
Linearly blends the fields of two LensSettings and returns the result
Declaration
public static LensSettings Lerp(LensSettings lensA, LensSettings lensB, float t)
Parameters
Type | Name | Description |
---|---|---|
LensSettings | lensA | The LensSettings to blend from |
LensSettings | lensB | The LensSettings to blend to |
float | t | The interpolation value. Internally clamped to the range [0,1] |
Returns
Type | Description |
---|---|
LensSettings | Interpolated settings |
Lerp(in LensSettings, float)
Lerp the interpolatable values. Values that can't be interpolated remain intact.
Declaration
public void Lerp(in LensSettings lensB, float t)
Parameters
Type | Name | Description |
---|---|---|
LensSettings | lensB | The lens containing the values to combine with this one |
float | t | The weight of LensB's values. |