Merge pull request from maniek2332/gtx-easing-bounce-fix

Fix glm::bounceEaseInOut() easing formula 
This commit is contained in:
Christophe 2022-04-20 12:38:07 +02:00 committed by GitHub
commit 416d0a23eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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
{