summaryrefslogtreecommitdiffstats
path: root/examples/qt3d/scene3d/AnimatedEntity.qml
diff options
context:
space:
mode:
authorMike Krus <mike.krus@kdab.com>2020-08-03 17:44:59 +0100
committerMike Krus <mike.krus@kdab.com>2020-08-05 11:32:02 +0100
commit2b8eaa3350250bb7afc5105aba2da51685aaed88 (patch)
treece1efe4160f194e6a4a77c5ae0769416d460afc0 /examples/qt3d/scene3d/AnimatedEntity.qml
parent32e687f3a83ba85e64c0f8ef43a5e3854111ab02 (diff)
Handle backend type based on QtQuick settings
By default, Scene3D will select the RHI backend. If QQuickWindow::graphicsApi() is set to QSGRendererInterface::OpenGLRhi (QSG_RHI_BACKEND set to "opengl") then Qt3D will select the OpenGL backend. It's possible to use the OpenGL backend to RHI by setting QQuickWindow::graphicsApi() to QSGRendererInterface::OpenGLRhi AND setting QT3D_RENDERER to "rhi". (Note that setting to QSGRendererInterface::OpenGL has not effect). Change-Id: I71488ddb290ce2e30c724ddcc10c57ed8afe267b Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'examples/qt3d/scene3d/AnimatedEntity.qml')
-rw-r--r--examples/qt3d/scene3d/AnimatedEntity.qml1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/qt3d/scene3d/AnimatedEntity.qml b/examples/qt3d/scene3d/AnimatedEntity.qml
index 02e1148e2..4c7f700cf 100644
--- a/examples/qt3d/scene3d/AnimatedEntity.qml
+++ b/examples/qt3d/scene3d/AnimatedEntity.qml
@@ -115,6 +115,7 @@ Entity {
SphereMesh {
id: sphereMesh
radius: 3
+ generateTangents: true
}
Transform {