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