Class IntParameter
A ParameterOverride<T> that holds a int
value.
Inherited Members
Namespace: UnityEngine.Rendering.PostProcessing
Syntax
public sealed class IntParameter : ParameterOverride<int>
Remarks
The interpolation method for this parameter is the same as int
.
Methods
Interp(Int32, Int32, Single)
Interpolates between two values given an interpolation factor t
.
Declaration
public override void Interp(int from, int to, float t)
Parameters
Type | Name | Description |
---|---|---|
Int32 | from | The value to interpolate from |
Int32 | to | The value to interpolate to |
Single | t | An interpolation factor (generally in range |
Overrides
UnityEngine.Rendering.PostProcessing.ParameterOverride<System.Int32>.Interp(System.Int32, System.Int32, 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.