Method Interp
Interp(AnimationCurve, AnimationCurve, float)
Interpolates between two AnimationCurve values. Note that it will overwrite the values in lhsCurve, whereas rhsCurve data will be unchanged. Thus, it is legal to call it as: stateParam.Interp(stateParam, toParam, interpFactor); However, It should NOT be called when the lhsCurve parameter needs to be preserved. But the current framework modifies it anyway in VolumeComponent.Override for all types of VolumeParameters
Declaration
public override void Interp(AnimationCurve lhsCurve, AnimationCurve rhsCurve, float t)
Parameters
Type | Name | Description |
---|---|---|
AnimationCurve | lhsCurve | The start value. |
AnimationCurve | rhsCurve | The end value. |
float | t | The interpolation factor in range [0,1]. |