Class FloatParameter
A ParameterOverride<T> that holds a float value.
Inherited Members
Namespace: UnityEngine.Rendering.PostProcessing
Assembly: Unity.Postprocessing.Runtime.dll
Syntax
[Serializable]
public sealed class FloatParameter : ParameterOverride<float>
Remarks
The interpolation method for this parameter is the same as LerpUnclamped(float, float, float).
Methods
Interp(float, float, float)
Interpolates between two values given an interpolation factor t.
Declaration
public override void Interp(float from, float to, float t)
Parameters
| Type | Name | Description |
|---|---|---|
| float | from | The value to interpolate from |
| float | to | The value to interpolate to |
| float | t | An interpolation factor (generally in range |
Overrides
Remarks
By default this method does a "snap" interpolation, meaning it will return the value
to if t is higher than 0, from
otherwise.