diff options
author | Tomi Korpipää <tomi.korpipaa@digia.com> | 2013-10-21 08:42:58 +0300 |
---|---|---|
committer | Tomi Korpipää <tomi.korpipaa@digia.com> | 2013-10-21 09:08:22 +0300 |
commit | 298e5e4ab12d8542c42bf4ed9118ab3f579d8456 (patch) | |
tree | d3e6a1ed3e2239c51e9233a7c73846cfd696c790 /src/datavisualization/global | |
parent | d55ac244c5f627a0767732f56a180e832f18814c (diff) |
Removed zComp
Task-number: QTRD-2488
Change-Id: I7d7b067a1d82a44aa349f553f0aff7c173969ea9
Change-Id: I7d7b067a1d82a44aa349f553f0aff7c173969ea9
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
Diffstat (limited to 'src/datavisualization/global')
-rw-r--r-- | src/datavisualization/global/datavisualizationglobal_p.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/datavisualization/global/datavisualizationglobal_p.h b/src/datavisualization/global/datavisualizationglobal_p.h index 4da1023c..6d0ee916 100644 --- a/src/datavisualization/global/datavisualizationglobal_p.h +++ b/src/datavisualization/global/datavisualizationglobal_p.h @@ -38,15 +38,13 @@ QT_DATAVISUALIZATION_BEGIN_NAMESPACE // Constants used in several files -// Compensation for z position; move all objects to positive z, as shader can't handle negative values correctly -const GLfloat zComp = 10.0f; // Distance from camera to origin const GLfloat cameraDistance = 6.0f; // Size of font to be used in label texture rendering. Doesn't affect the actual font size. const int textureFontSize = 50; // Default light position. To have shadows working correctly, light should be as far as camera, or a bit further // y position is added to the minimum height (or can be thought to be that much above or below the camera) -const QVector3D defaultLightPos = QVector3D(0.0f, 0.5f, zComp); +const QVector3D defaultLightPos = QVector3D(0.0f, 0.5f, 0.0f); const GLfloat defaultRatio = 1.0f / 1.6f; // default aspect ratio 16:10 QT_DATAVISUALIZATION_END_NAMESPACE |