ColorUtilities.GradientLerpNoAlpha(Gradient, Gradient, Single) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Linearly interpolate between two gradients, without interpolating alpha.
public static UnityEngine.Gradient GradientLerpNoAlpha(UnityEngine.Gradient a, UnityEngine.Gradient b, float t);
static member GradientLerpNoAlpha : UnityEngine.Gradient * UnityEngine.Gradient * single -> UnityEngine.Gradient
Public Shared Function GradientLerpNoAlpha (a As Gradient, b As Gradient, t As Single) As Gradient
Parameters
- a
- UnityEngine.Gradient
- b
- UnityEngine.Gradient
- t
- Single
Returns
The linearly interpolated gradient
Remarks
Taken from https://forum.unity.com/threads/lerp-from-one-gradient-to-another.342561/