diff options
author | Tomi Korpipää <tomi.korpipaa@digia.com> | 2013-08-07 09:11:30 +0300 |
---|---|---|
committer | Tomi Korpipää <tomi.korpipaa@digia.com> | 2013-08-07 09:18:52 +0300 |
commit | b2ad88e33a93a491250443b200dbba22b3870782 (patch) | |
tree | 1f17e35ec6e7a3a61427fe90d5481b7842c11f52 /examples/scatterchart | |
parent | d727554e22112657c447e855589847743622716c (diff) |
Fix for shadow angling bug
Task-number: QTRD-2130
+ added an option to use orthographic shadows, but using them would
require shader changes and some more tweaking
Change-Id: Ibf54f43daebbf136422284528588e5a6eecc4538
Change-Id: Ibf54f43daebbf136422284528588e5a6eecc4538
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
Diffstat (limited to 'examples/scatterchart')
-rw-r--r-- | examples/scatterchart/scatterchart.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/examples/scatterchart/scatterchart.cpp b/examples/scatterchart/scatterchart.cpp index 9c3c3247..1c6edfd1 100644 --- a/examples/scatterchart/scatterchart.cpp +++ b/examples/scatterchart/scatterchart.cpp @@ -44,7 +44,7 @@ using namespace QtDataVis3D; -const int numberOfItems = 10000; +const int numberOfItems = 100;//10000; ScatterDataModifier::ScatterDataModifier(Q3DScatter *scatter) : m_chart(scatter), @@ -71,12 +71,13 @@ void ScatterDataModifier::start() void ScatterDataModifier::addData() { QStringList rowLabels; - rowLabels << "something 1" << "something 2" << "something 3" << "something 4" << "something 5" - << "something 6" << "something 7" << "something 8" << "something 9" - << "something 10" << "something 11"; + rowLabels << "something -1.0" << "something -0.8" << "something -0.6" << "something -0.4" + << "something -0.2" << "something 0.0" << "something 0.2" << "something 0.4" + << "something 0.6" << "something 0.8" << "something 1.0"; QStringList columnLabels; - columnLabels << "other 1" << "other 2" << "other 3" << "other 4" << "other 5" << "other 6" - << "other 7" << "other 8" << "other 9" << "other 10" << "other 11"; + columnLabels << "other -1.0" << "other -0.8" << "other -0.6" << "other -0.4" << "other -0.2" + << "other 0.0" << "other 0.2" << "other 0.4" << "other 0.6" << "other 0.8" + << "other 1.0"; // Set tick count and step m_chart->setTickCount(10, 0.1f, -1.0f); |