diff options
Diffstat (limited to 'src/datavisualization/engine/scatter3drenderer.cpp')
-rw-r--r-- | src/datavisualization/engine/scatter3drenderer.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/datavisualization/engine/scatter3drenderer.cpp b/src/datavisualization/engine/scatter3drenderer.cpp index a4ca528e..1da5dd99 100644 --- a/src/datavisualization/engine/scatter3drenderer.cpp +++ b/src/datavisualization/engine/scatter3drenderer.cpp @@ -719,8 +719,10 @@ void Scatter3DRenderer::drawScene(const GLuint defaultFboHandle) #endif // If we're viewing from below, grid line object must be flipped - if (m_yFlipped) + if (m_yFlipped) { modelMatrix.rotate(180.0f, 1.0, 0.0, 0.0); + itModelMatrix.rotate(180.0f, 1.0, 0.0, 0.0); + } MVPMatrix = projectionMatrix * viewMatrix * modelMatrix; depthMVPMatrix = depthProjectionMatrix * depthViewMatrix * modelMatrix; @@ -849,8 +851,10 @@ void Scatter3DRenderer::drawScene(const GLuint defaultFboHandle) #endif // If we're viewing from below, grid line object must be flipped - if (m_yFlipped) + if (m_yFlipped) { modelMatrix.rotate(180.0f, 1.0, 0.0, 0.0); + itModelMatrix.rotate(180.0f, 1.0, 0.0, 0.0); + } MVPMatrix = projectionMatrix * viewMatrix * modelMatrix; depthMVPMatrix = depthProjectionMatrix * depthViewMatrix * modelMatrix; |