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>
52 DistinctTexturesSkybox
59 virtual SkyboxType type()
const = 0;
62 Qt3DRender::QEffect *mEffect =
nullptr;
63 Qt3DRender::QMaterial *mMaterial =
nullptr;
64 Qt3DRender::QTechnique *mGl3Technique =
nullptr;
65 Qt3DRender::QFilterKey *mFilterKey =
nullptr;
66 Qt3DRender::QRenderPass *mGl3RenderPass =
nullptr;
67 Qt3DExtras::QCuboidMesh *mMesh =
nullptr;
68 Qt3DRender::QParameter *mGammaStrengthParameter =
nullptr;
69 Qt3DRender::QParameter *mTextureParameter =
nullptr;
95 Qt3DRender::QTextureLoader *mLoadedTexture =
nullptr;
96 Qt3DRender::QShaderProgram *mGlShader =
nullptr;
111 QgsCubeFacesSkyboxEntity(
const QString &posX,
const QString &posY,
const QString &posZ,
const QString &negX,
const QString &negY,
const QString &negZ, Qt3DCore::QNode *parent =
nullptr );
118 void reloadTexture();
120 QMap<Qt3DRender::QTextureCubeMap::CubeMapFace, QString> mCubeFacesPaths;
121 Qt3DRender::QShaderProgram *mGlShader =
nullptr;
122 QVector<Qt3DRender::QTextureImage *> mFacesTextureImages;
123 Qt3DRender::QTextureCubeMap *mCubeMap =
nullptr;
126 #endif // QGSSKYBOXENTITY_H