diff --git a/src/viewer/simpleViewer.cpp b/src/viewer/simpleViewer.cpp index 7600f96..98af1a8 100644 --- a/src/viewer/simpleViewer.cpp +++ b/src/viewer/simpleViewer.cpp @@ -129,7 +129,7 @@ void Viewer::drawSkybox() // Increase size of skybox modelViewMatrix = QMatrix4x4(modelViewMatrix.normalMatrix()); - modelViewMatrix.scale(100); + modelViewMatrix.scale(300); float colorMult = 0.2 + std::fabs(0.8 * cos(std::fmod(angle_mult * frame + 300, 360) / 360 * M_PI)); @@ -208,6 +208,7 @@ void Viewer::draw() if(!isPickingActivated) drawSkybox(); + glClear(GL_DEPTH_BUFFER_BIT); glCullFace( GL_BACK ); @@ -337,14 +338,11 @@ void Viewer::drawParticles(){ camera()->getProjectionMatrix(projectionMatrix); camera()->getModelViewMatrix(modelViewMatrix); - glBindVertexArray(m_VAOs[VAO_Particle]); glBindBuffer(GL_ARRAY_BUFFER, VBO_Particle); glBindBuffer(GL_ARRAY_BUFFER, VBO_Particle_Positions); glBindBuffer(GL_ARRAY_BUFFER, VBO_Particle_Colors); - - glActiveTexture(GL_TEXTURE0); TexturePrograms[1]->bind();