summaryrefslogtreecommitdiffstats
path: root/examples/qt3d
diff options
context:
space:
mode:
authorJean-Michaël Celerier <jean-michael.celerier@kdab.com>2020-03-17 16:07:38 +0100
committerJean-Michaël Celerier <jean-michael.celerier@kdab.com>2020-04-22 09:36:46 +0200
commitdf4ec04dae8c0ce9fa3b27bc8e48eb2d36a20962 (patch)
tree723fe393774b3f697bd9bc5d87a41220b377953c /examples/qt3d
parenta01dbe5b0e1b912c7210abc304700020e685aff0 (diff)
rhi: Port most of Qt3DExtras materials to RHI
Change-Id: Iba20f047404b20c1e5b9bdcef917b3c2a1000d59 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'examples/qt3d')
-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);