mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 14:44:36 +00:00
use the templated mLerp
turns out a) it exists, and b) it uses the standard input order, so shoud be easier for new folks to remember
This commit is contained in:
parent
82b5084875
commit
9f9049e6bd
7 changed files with 30 additions and 53 deletions
|
|
@ -558,7 +558,7 @@ void afxXM_WaveBase::updateParams(F32 dt, F32 elapsed, afxXM_Params& params)
|
|||
else
|
||||
{
|
||||
F32 wt_factor = calc_weight_factor(elapsed);
|
||||
F32 final_t = afxXM_WaveInterp::lerp(wt_factor, db->off_duty_t, last_t);
|
||||
F32 final_t = mLerp(db->off_duty_t, last_t, wt_factor);
|
||||
interpolator->interpolate(final_t, params);
|
||||
}
|
||||
}
|
||||
|
|
@ -602,7 +602,7 @@ void afxXM_WaveRiderBase::updateParams(F32 dt, F32 elapsed, afxXM_Params& params
|
|||
else
|
||||
{
|
||||
F32 wt_factor = calc_weight_factor(elapsed);
|
||||
F32 final_t = afxXM_WaveInterp::lerp(wt_factor, db->off_duty_t, t);
|
||||
F32 final_t = mLerp(db->off_duty_t, t, wt_factor);
|
||||
interpolator->interpolate(final_t, params);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue