20 #include <Qt3DExtras/QGoochMaterial>
24 return QStringLiteral(
"gooch" );
36 case QgsMaterialSettingsRenderingTechnique::Triangles:
40 case QgsMaterialSettingsRenderingTechnique::Lines:
41 case QgsMaterialSettingsRenderingTechnique::InstancedPoints:
59 mShininess = elem.attribute( QStringLiteral(
"shininess2" ), QStringLiteral(
"100" ) ).toFloat();
60 mAlpha = elem.attribute( QStringLiteral(
"alpha" ), QStringLiteral(
"0.25" ) ).toFloat();
61 mBeta = elem.attribute( QStringLiteral(
"beta" ), QStringLiteral(
"0.5" ) ).toFloat();
70 elem.setAttribute( QStringLiteral(
"shininess2" ), mShininess );
71 elem.setAttribute( QStringLiteral(
"alpha" ), mAlpha );
72 elem.setAttribute( QStringLiteral(
"beta" ), mBeta );
77 return QMap<QString, QString>();
84 case QgsMaterialSettingsRenderingTechnique::Triangles:
87 Qt3DExtras::QGoochMaterial *material =
new Qt3DExtras::QGoochMaterial;
88 material->setDiffuse( mDiffuse );
89 material->setWarm( mWarm );
90 material->setCool( mCool );
92 material->setSpecular( mSpecular );
93 material->setShininess( mShininess );
94 material->setAlpha( mAlpha );
95 material->setBeta( mBeta );
105 case QgsMaterialSettingsRenderingTechnique::Lines:
106 case QgsMaterialSettingsRenderingTechnique::InstancedPoints: