Browse Source

fix `glm::bounceEaseInOut()` easing formula

Mariusz Okulanis 4 years ago
parent
commit
eb23f89db2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      glm/gtx/easing.inl

+ 1 - 1
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
 		{