summaryrefslogtreecommitdiffstats
path: root/examples/qt3d/simple-cpp/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/qt3d/simple-cpp/main.cpp')
-rw-r--r--examples/qt3d/simple-cpp/main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/qt3d/simple-cpp/main.cpp b/examples/qt3d/simple-cpp/main.cpp
index 32f19c194..ac4f74e00 100644
--- a/examples/qt3d/simple-cpp/main.cpp
+++ b/examples/qt3d/simple-cpp/main.cpp
@@ -99,6 +99,7 @@ Qt3DCore::QEntity *createScene()
Qt3DCore::QEntity *sphereEntity = new Qt3DCore::QEntity(rootEntity);
Qt3DExtras::QSphereMesh *sphereMesh = new Qt3DExtras::QSphereMesh;
sphereMesh->setRadius(3);
+ sphereMesh->setGenerateTangents(true);
Qt3DCore::QTransform *sphereTransform = new Qt3DCore::QTransform;
OrbitTransformController *controller = new OrbitTransformController(sphereTransform);