16 #ifndef QGSSKYBOXENTITY_H
17 #define QGSSKYBOXENTITY_H
19 #include <Qt3DCore/QEntity>
21 #include <Qt3DRender/QTexture>
22 #include <Qt3DExtras/QCuboidMesh>
23 #include <Qt3DRender/QEffect>
24 #include <Qt3DRender/QMaterial>
25 #include <Qt3DRender/QShaderProgram>
26 #include <Qt3DRender/QFilterKey>
27 #include <Qt3DRender/QRenderPass>
28 #include <Qt3DExtras/QPlaneMesh>
29 #include <Qt3DRender/QParameter>
51 DistinctTexturesSkybox
61 Qt3DRender::QEffect *mEffect =
nullptr;
62 Qt3DRender::QMaterial *mMaterial =
nullptr;
63 Qt3DRender::QTechnique *mGl3Technique =
nullptr;
64 Qt3DRender::QFilterKey *mFilterKey =
nullptr;
65 Qt3DRender::QRenderPass *mGl3RenderPass =
nullptr;
66 Qt3DExtras::QCuboidMesh *mMesh =
nullptr;
67 Qt3DRender::QParameter *mGammaStrengthParameter =
nullptr;
68 Qt3DRender::QParameter *mTextureParameter =
nullptr;
91 Qt3DRender::QTextureLoader *mLoadedTexture =
nullptr;
92 Qt3DRender::QShaderProgram *mGlShader =
nullptr;
104 QgsCubeFacesSkyboxEntity(
const QString &posX,
const QString &posY,
const QString &posZ,
const QString &negX,
const QString &negY,
const QString &negZ, Qt3DCore::QNode *parent =
nullptr );
111 void reloadTexture();
113 QMap<Qt3DRender::QTextureCubeMap::CubeMapFace, QString> mCubeFacesPaths;
114 Qt3DRender::QShaderProgram *mGlShader =
nullptr;
115 QVector<Qt3DRender::QTextureImage *> mFacesTextureImages;
116 Qt3DRender::QTextureCubeMap *mCubeMap =
nullptr;
119 #endif // QGSSKYBOXENTITY_H