summaryrefslogtreecommitdiffstats
path: root/src/engine
diff options
context:
space:
mode:
authorTomi Korpipää <tomi.korpipaa@digia.com>2013-05-14 14:09:10 +0300
committerTomi Korpipää <tomi.korpipaa@digia.com>2013-05-14 14:10:50 +0300
commitd2ecbc5603b73f4a5e0164ac0dd984541d86bd98 (patch)
tree0923ea00a15829e7807fd7bd017ce315413f4f4d /src/engine
parentf6cfd480b4e873c29f4b9c0df1e450ddd0516312 (diff)
Hack to fix zoom mode shadow problems
To be fixed. Change-Id: Ic5b9ea0ae6e4e552606c6e1528685f657cb90723 Change-Id: Ic5b9ea0ae6e4e552606c6e1528685f657cb90723 Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>
Diffstat (limited to 'src/engine')
-rw-r--r--src/engine/q3dbars.cpp3
1 files changed, 2 insertions, 1 deletions
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();