diff options
Diffstat (limited to 'src/datavisualization/global')
-rw-r--r-- | src/datavisualization/global/datavisualizationglobal_p.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/datavisualization/global/datavisualizationglobal_p.h b/src/datavisualization/global/datavisualizationglobal_p.h index 29fcc532..4da1023c 100644 --- a/src/datavisualization/global/datavisualizationglobal_p.h +++ b/src/datavisualization/global/datavisualizationglobal_p.h @@ -40,6 +40,10 @@ 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); |