diff options
author | Robert Brock <robert.brock@kdab.com> | 2016-01-05 09:02:14 +0000 |
---|---|---|
committer | Sean Harmer <sean.harmer@kdab.com> | 2016-01-05 10:28:58 +0000 |
commit | 31f9eb2e3d533e72a983275b0527c24f079ff379 (patch) | |
tree | 794d001aa9ca466dea8e1cc61f7ec7b7862ea470 /examples | |
parent | a45caec3956c15f44926b1d6bffbfbbaf288766e (diff) |
Camera moved - custom-mesh-cpp
From z: -40 to z: 40
Change-Id: Ic764678ffd12c9ded39bed6a8e04a8fd6b382f59
Task-number: QTBUG-49800
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/qt3d/custom-mesh-cpp/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/qt3d/custom-mesh-cpp/main.cpp b/examples/qt3d/custom-mesh-cpp/main.cpp index e7b804a28..804d4b79d 100644 --- a/examples/qt3d/custom-mesh-cpp/main.cpp +++ b/examples/qt3d/custom-mesh-cpp/main.cpp @@ -79,7 +79,7 @@ int main(int argc, char* argv[]) Qt3DCore::QCamera *cameraEntity = new Qt3DCore::QCamera(rootEntity); cameraEntity->lens()->setPerspectiveProjection(45.0f, 16.0f/9.0f, 0.1f, 1000.0f); - cameraEntity->setPosition(QVector3D(0, 0, -40.0f)); + cameraEntity->setPosition(QVector3D(0, 0, 40.0f)); cameraEntity->setUpVector(QVector3D(0, 1, 0)); cameraEntity->setViewCenter(QVector3D(0, 0, 0)); input->setCamera(cameraEntity); |