summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dist/changes-1.1.01
-rw-r--r--src/datavisualization/engine/surface3drenderer.cpp3
2 files changed, 3 insertions, 1 deletions
diff --git a/dist/changes-1.1.0 b/dist/changes-1.1.0
index 8a470ccb..7d27438b 100644
--- a/dist/changes-1.1.0
+++ b/dist/changes-1.1.0
@@ -57,7 +57,6 @@ General:
- Surface3D: Fixed a crash when shadows were supported by OpenGL but flat shading was not.
- Surface3D: Selection texture no longer gets corrupted in case there are multiple surfaces
visible and the axis ranges are adjusted.
-- Surface3D: Fixed shadow culling, improving the shadow cast on the surface itself.
New examples
------------
diff --git a/src/datavisualization/engine/surface3drenderer.cpp b/src/datavisualization/engine/surface3drenderer.cpp
index e4dfebfc..38c8d8fe 100644
--- a/src/datavisualization/engine/surface3drenderer.cpp
+++ b/src/datavisualization/engine/surface3drenderer.cpp
@@ -1126,6 +1126,9 @@ void Surface3DRenderer::drawScene(GLuint defaultFboHandle)
}
}
+ glEnable(GL_CULL_FACE);
+ glCullFace(GL_FRONT);
+
Abstract3DRenderer::drawCustomItems(RenderingDepth, m_depthShader, viewMatrix,
projectionViewMatrix, depthProjectionViewMatrix,
m_depthTexture, m_shadowQualityToShader);