16#ifndef QGSSKYBOXENTITY_H
17#define QGSSKYBOXENTITY_H
24#include <Qt3DCore/QEntity>
25#include <Qt3DRender/QTexture>
80 Qt3DExtras::QCuboidMesh *
mMesh =
nullptr;
105 void reloadTexture();
108 QString mTexturePath;
109 Qt3DRender::QTextureLoader *mLoadedTexture =
nullptr;
110 Qt3DRender::QShaderProgram *mGlShader =
nullptr;
125 QgsCubeFacesSkyboxEntity(
const QString &posX,
const QString &posY,
const QString &posZ,
const QString &negX,
const QString &negY,
const QString &negZ, Qt3DCore::QNode *parent =
nullptr );
132 void reloadTexture();
135 QMap<Qt3DRender::QTextureCubeMap::CubeMapFace, QString> mCubeFacesPaths;
136 Qt3DRender::QShaderProgram *mGlShader =
nullptr;
137 QVector<Qt3DRender::QTextureImage *> mFacesTextureImages;
138 Qt3DRender::QTextureCubeMap *mCubeMap =
nullptr;
QgsCubeFacesSkyboxEntity(const QString &posX, const QString &posY, const QString &posZ, const QString &negX, const QString &negY, const QString &negZ, Qt3DCore::QNode *parent=nullptr)
Constructs a skybox from 6 different images.
SkyboxType type() const override
Returns the type of the current skybox.
Holds an image that can be used as a texture in the 3D view.
QgsPanoramicSkyboxEntity(const QString &texturePath, Qt3DCore::QNode *parent=nullptr)
Construct a skybox from a panoramic 360 image.
QString texturePath() const
Returns the path of the current texture in use.
SkyboxType type() const override
Returns the type of the current skybox.
Base class for all skybox types.
QgsSkyboxEntity(QNode *parent=nullptr)
Constructor.
Qt3DRender::QRenderPass * mGl3RenderPass
virtual SkyboxType type() const =0
Returns the type of the current skybox.
SkyboxType
Skybox type enumeration.
Qt3DRender::QParameter * mGammaStrengthParameter
Qt3DRender::QFilterKey * mFilterKey
Qt3DRender::QEffect * mEffect
Qt3DExtras::QCuboidMesh * mMesh
Qt3DRender::QParameter * mTextureParameter
Qt3DRender::QMaterial * mMaterial
Qt3DRender::QTechnique * mGl3Technique