diff --git a/examples/qt3d/load_model/load_model.cpp b/examples/qt3d/load_model/load_model.cpp index 4b65da0..17b55c2 100644 --- a/examples/qt3d/load_model/load_model.cpp +++ b/examples/qt3d/load_model/load_model.cpp @@ -125,7 +125,7 @@ void FixNodesRecursive(int matIndex, QGLSceneNode* pNode) { if (pNode) { pNode->setMaterialIndex(matIndex); - pNode->setEffect(QGL::FlatReplaceTexture2D); + pNode->setEffect(QGL::LitMaterial); foreach (QGLSceneNode* pCh, pNode->children()) { FixNodesRecursive(matIndex, pCh); } @@ -149,7 +149,7 @@ void LoadModelView::loadModels() QGLSceneNode* pTeapotSceneRoot = m_pTeapotScene->mainNode(); int matIndex = pTeapotSceneRoot->palette()->addMaterial(mat); pTeapotSceneRoot->setMaterialIndex(matIndex); - pTeapotSceneRoot->setEffect(QGL::FlatReplaceTexture2D); + pTeapotSceneRoot->setEffect(QGL::LitMaterial); FixNodesRecursive(matIndex,pTeapotSceneRoot); } @@ -168,7 +168,7 @@ void LoadModelView::loadModels() QGLSceneNode* pLanderSceneRoot = m_pLanderScene->mainNode(); int matIndex = pLanderSceneRoot->palette()->addMaterial(mat); pLanderSceneRoot->setMaterialIndex(matIndex); - pLanderSceneRoot->setEffect(QGL::FlatReplaceTexture2D); + pLanderSceneRoot->setEffect(QGL::LitMaterial); FixNodesRecursive(matIndex,pLanderSceneRoot); } }