--- a/src/gl/partrenderer.cpp Fri Mar 06 16:08:53 2020 +0200 +++ b/src/gl/partrenderer.cpp Fri Mar 06 20:13:10 2020 +0200 @@ -80,7 +80,7 @@ 0.1f, 10000.f); this->compiler->setUniformMatrix("projectionMatrix", this->projectionMatrix); - emit projectionMatrixChanged(); + emit projectionMatrixChanged(this->projectionMatrix); } static GLenum getGlTypeForArrayClass(const gl::ArrayClass vboClass) @@ -192,14 +192,14 @@ const double z = 2 * std::exp(this->zoom) * (1 + this->compiler->modelDistance()); this->viewMatrix = glm::lookAt(glm::vec3{0, 0, z}, {0, 0, 0}, {0, -1, 0}); this->compiler->setUniformMatrix("viewMatrix", this->viewMatrix); - emit this->viewMatrixChanged(); + emit this->viewMatrixChanged(this->viewMatrix); } void PartRenderer::updateModelMatrix() { this->modelMatrix = glm::mat4_cast(this->modelQuaternion); this->compiler->setUniformMatrix("modelMatrix", modelMatrix); - emit this->modelMatrixChanged(); + emit this->modelMatrixChanged(this->modelMatrix); this->update(); }