From 4bab4bbcf705ae581535a4c35b1fd08fb7ed2a7b Mon Sep 17 00:00:00 2001 From: Cat Flynn Date: Thu, 3 Aug 2023 01:04:01 +0200 Subject: [PATCH] feat: slow rotation --- src/hello.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hello.cpp b/src/hello.cpp index c96d880..f17e268 100644 --- a/src/hello.cpp +++ b/src/hello.cpp @@ -99,7 +99,7 @@ void updateModelViewProjectionMatrix(GLuint shaderProgram, float time) float left = -1.0, right = 1.0, bottom = -1.0, top = 1.0, near = -1.0, far = 1.0; glm::mat4 projection = glm::ortho(left, right, bottom, top, near, far); - constexpr float angle = glm::radians(50.0); + constexpr float angle = glm::radians(10.0); glm::vec3 axis = glm::vec3(0.0, 1.0, 0.0); glm::mat4 model = glm::rotate(glm::mat4(1.0), angle * time, axis);