From 298e5e4ab12d8542c42bf4ed9118ab3f579d8456 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomi=20Korpip=C3=A4=C3=A4?= Date: Mon, 21 Oct 2013 08:42:58 +0300 Subject: Removed zComp Task-number: QTRD-2488 Change-Id: I7d7b067a1d82a44aa349f553f0aff7c173969ea9 Change-Id: I7d7b067a1d82a44aa349f553f0aff7c173969ea9 Reviewed-by: Miikka Heikkinen --- src/datavisualization/global/datavisualizationglobal_p.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/datavisualization/global/datavisualizationglobal_p.h') 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 -- cgit v1.2.3