fix glm::bounceEaseInOut() easing formula

This commit is contained in:
Mariusz Okulanis 2021-06-07 16:39:24 +02:00
parent 66062497b1
commit eb23f89db2

View File

@ -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
{