fix `glm::bounceEaseInOut()` easing formula

master
Mariusz Okulanis ago%!(EXTRA string=4 years)
parent 66062497b1
commit eb23f89db2
  1. 2
      glm/gtx/easing.inl

@ -425,7 +425,7 @@ namespace glm{
if(a < static_cast<genType>(0.5))
{
return static_cast<genType>(0.5) * (one<genType>() - bounceEaseOut(a * static_cast<genType>(2)));
return static_cast<genType>(0.5) * (one<genType>() - bounceEaseOut(one<genType>() - a * static_cast<genType>(2)));
}
else
{

Loading…
Cancel
Save