Class ColorParameter
A ParameterOverride<T> that holds a Color value.
Inherited Members
Namespace: UnityEngine.Rendering.PostProcessing
Assembly: Unity.Postprocessing.Runtime.dll
Syntax
[Serializable]
public sealed class ColorParameter : ParameterOverride<Color>
Remarks
The interpolation method for this parameter is the same as LerpUnclamped(float, float, float) for each channel.
Methods
Interp(Color, Color, float)
Interpolates between two values given an interpolation factor t.
Declaration
public override void Interp(Color from, Color to, float t)
Parameters
| Type | Name | Description |
|---|---|---|
| Color | from | The value to interpolate from |
| Color | 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.
Operators
implicit operator Vector4(ColorParameter)
Implicit conversion between ColorParameter and a Vector4.
Declaration
public static implicit operator Vector4(ColorParameter prop)
Parameters
| Type | Name | Description |
|---|---|---|
| ColorParameter | prop | The parameter to implicitly cast |
Returns
| Type | Description |
|---|---|
| Vector4 | A |