fix default angle

Sun, 26 Jan 2020 01:06:27 +0200

author
Teemu Piippo <teemu@hecknology.net>
date
Sun, 26 Jan 2020 01:06:27 +0200
changeset 32
767592024ec5
parent 31
b6df269a2c6b
child 33
4c41bfe2ec6e

fix default angle

src/gl/partrenderer.cpp file | annotate | diff | comparison | revisions
--- a/src/gl/partrenderer.cpp	Sun Jan 26 00:55:36 2020 +0200
+++ b/src/gl/partrenderer.cpp	Sun Jan 26 01:06:27 2020 +0200
@@ -48,8 +48,8 @@
 	this->compiler->build(this->model, this->documents);
 	this->initializeLighting();
 	this->initialized = true;
-	this->modelQuaternion = glm::angleAxis(glm::radians(30.0f), glm::vec3{1, 0, 0});
-	this->modelQuaternion *= glm::angleAxis(glm::radians(330.0f), glm::vec3{0, 1, 0});
+	this->modelQuaternion = glm::angleAxis(glm::radians(30.0f), glm::vec3{-1, 0, 0});
+	this->modelQuaternion *= glm::angleAxis(glm::radians(225.0f), glm::vec3{-0, 1, 0});
 	this->updateViewMatrix();
 	glLineWidth(2.0);
 	this->update();

mercurial