From 3c7ad6d8da4b0703cbbf98e4621d908c9d19b4fc Mon Sep 17 00:00:00 2001 From: Dmitri K Date: Tue, 29 Nov 2016 12:31:04 -0500 Subject: [PATCH] fixing skybox position/scaling --- src/viewer/simpleViewer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/viewer/simpleViewer.cpp b/src/viewer/simpleViewer.cpp index 28720d7..11cca62 100644 --- a/src/viewer/simpleViewer.cpp +++ b/src/viewer/simpleViewer.cpp @@ -112,7 +112,7 @@ void Viewer::drawSkybox() camera()->getModelViewMatrix(modelViewMatrix); // Increase size of skybox - + modelViewMatrix = QMatrix4x4(modelViewMatrix.normalMatrix()); modelViewMatrix.scale(100); float colorMult = 0.2 + std::fabs(0.8 * cos(std::fmod(angle_mult * frame + 300, 360) / 360 * M_PI));