From d2ecbc5603b73f4a5e0164ac0dd984541d86bd98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomi=20Korpip=C3=A4=C3=A4?= Date: Tue, 14 May 2013 14:09:10 +0300 Subject: Hack to fix zoom mode shadow problems MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To be fixed. Change-Id: Ic5b9ea0ae6e4e552606c6e1528685f657cb90723 Change-Id: Ic5b9ea0ae6e4e552606c6e1528685f657cb90723 Reviewed-by: Tomi Korpipää --- src/engine/q3dbars.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/engine') diff --git a/src/engine/q3dbars.cpp b/src/engine/q3dbars.cpp index e83d5892..a6231cea 100644 --- a/src/engine/q3dbars.cpp +++ b/src/engine/q3dbars.cpp @@ -467,9 +467,10 @@ void Q3DBars::drawScene() //lightPos = QVector3D(0.0f, 4.0f, zComp); // center of bars, 4.0f above - for testing // Skip depth rendering if we're in zoom mode + // TODO: Fix this, causes problems if depth rendering is off in zoom mode QMatrix4x4 depthViewMatrix; QMatrix4x4 depthProjectionMatrix; - if (!d_ptr->m_zoomActivated) { + /*if (!d_ptr->m_zoomActivated)*/ { // Render scene into a depth texture for using with shadow mapping // Bind depth shader d_ptr->m_depthShader->bind(); -- cgit v1.2.3