Add new 'motion_offset' parameter to motion elements

This commit is contained in:
Simon Detheridge
2015-07-06 15:05:43 +01:00
parent efb39f8160
commit 3fa59be990
5 changed files with 22 additions and 5 deletions

View File

@ -1293,7 +1293,7 @@ public:
point.m_Z -= m_CamZPos;
}
#define APP_FMP(x) x += param.second * Interpolater<T>::MotionFuncs(motion.m_MotionFunc, motion.m_MotionFreq * blend)
#define APP_FMP(x) x += param.second * Interpolater<T>::MotionFuncs(motion.m_MotionFunc, motion.m_MotionFreq * (blend + motion.m_MotionOffset))
/// <summary>
/// Update ember parameters based on stored motion elements
/// </summary>