Class ColorParameter
A ParameterOverride<T> that holds a
Inherited Members
Namespace: UnityEngine.Rendering.PostProcessing
Syntax
public sealed class ColorParameter : ParameterOverride<Color>
Remarks
The interpolation method for this parameter is the same as
Methods
Interp(Color, Color, Single)
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 |
Single | t | An interpolation factor (generally in range |
Overrides
UnityEngine.Rendering.PostProcessing.ParameterOverride<Color>.Interp(Color, Color, System.Single)
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(ColorParameter to Vector4)
Implicit conversion between ColorParameter and a
Declaration
public static implicit operator Vector4(ColorParameter prop)
Parameters
Type | Name | Description |
---|---|---|
ColorParameter | prop | The parameter to implicitly cast |
Returns
Type | Description |
---|---|
Vector4 | A |