Class FloatParameter
A VolumeParameter that holds a float
value.
Inherited Members
Namespace: UnityEngine.Rendering
Assembly: Unity.RenderPipelines.Core.Runtime.dll
Syntax
[Serializable]
public class FloatParameter : VolumeParameter<float>, ICloneable, IEquatable<VolumeParameter<float>>
Constructors
FloatParameter(float, bool)
Creates a new FloatParameter instance.
Declaration
public FloatParameter(float value, bool overrideState = false)
Parameters
Type | Name | Description |
---|---|---|
float | value | The initial value to store in the parameter |
bool | overrideState | The initial override state for the parameter |
See Also
Methods
Interp(float, float, float)
Interpolates between two float
values.
Declaration
public override sealed void Interp(float from, float to, float t)
Parameters
Type | Name | Description |
---|---|---|
float | from | The start value |
float | to | The end value |
float | t | The interpolation factor in range [0,1] |