feat: slow rotation

This commit is contained in:
Cat Flynn 2023-08-03 01:04:01 +02:00
parent a444deb51a
commit 4bab4bbcf7
1 changed files with 1 additions and 1 deletions

View File

@ -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);