From 23ae9717ea5bd3bd6f6eed0406793504065d0f5f Mon Sep 17 00:00:00 2001 From: Bert Peters Date: Fri, 23 Feb 2018 17:59:15 +0100 Subject: [PATCH] Slightly nicer animations. --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 95c5a81..84e72bb 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -156,7 +156,7 @@ static void idleFunc() checkGLErrors(); glutPostRedisplay(); throttleIdleFunc(); - rendererData.animationStep = getAnimationStep(std::chrono::seconds(5)); + rendererData.animationStep = (1 - cos(M_PI * getAnimationStep(std::chrono::seconds(5)))) / 2; } int main(int argc, char *argv[])