From eb23f89db28e302eb4910d92101900587434c690 Mon Sep 17 00:00:00 2001 From: Mariusz Okulanis Date: Mon, 7 Jun 2021 16:39:24 +0200 Subject: [PATCH] fix `glm::bounceEaseInOut()` easing formula --- glm/gtx/easing.inl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glm/gtx/easing.inl b/glm/gtx/easing.inl index 4b7d05b7..b599c306 100644 --- a/glm/gtx/easing.inl +++ b/glm/gtx/easing.inl @@ -425,7 +425,7 @@ namespace glm{ if(a < static_cast(0.5)) { - return static_cast(0.5) * (one() - bounceEaseOut(a * static_cast(2))); + return static_cast(0.5) * (one() - bounceEaseOut(one() - a * static_cast(2))); } else {