diff options
author | Tomi Korpipää <tomi.korpipaa@digia.com> | 2013-05-14 14:09:10 +0300 |
---|---|---|
committer | Tomi Korpipää <tomi.korpipaa@digia.com> | 2013-05-14 14:10:50 +0300 |
commit | d2ecbc5603b73f4a5e0164ac0dd984541d86bd98 (patch) | |
tree | 0923ea00a15829e7807fd7bd017ce315413f4f4d /src/engine | |
parent | f6cfd480b4e873c29f4b9c0df1e450ddd0516312 (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.cpp | 3 |
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(); |