From e9dc0f74f5cc06eb5edc3c16a63c9e6e89422584 Mon Sep 17 00:00:00 2001 From: Miikka Heikkinen Date: Mon, 9 Jun 2014 09:58:15 +0300 Subject: Revert surface shadow cull disable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The fix caused weird self-shadowing issues in some cases, needs to be done differently. Change-Id: Ie66b03b6d8c7f480a5822774de76b033586b6a3a Reviewed-by: Tomi Korpipää --- dist/changes-1.1.0 | 1 - src/datavisualization/engine/surface3drenderer.cpp | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) 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); -- cgit v1.2.3