16#ifndef QGSSKYBOXENTITY_H
17#define QGSSKYBOXENTITY_H
22#include <Qt3DCore/QEntity>
23#include <Qt3DExtras/QCuboidMesh>
24#include <Qt3DExtras/QPlaneMesh>
25#include <Qt3DRender/QEffect>
26#include <Qt3DRender/QFilterKey>
27#include <Qt3DRender/QMaterial>
28#include <Qt3DRender/QParameter>
29#include <Qt3DRender/QRenderPass>
30#include <Qt3DRender/QShaderProgram>
31#include <Qt3DRender/QTexture>
68 Qt3DExtras::QCuboidMesh *
mMesh =
nullptr;
97 Qt3DRender::QTextureLoader *mLoadedTexture =
nullptr;
98 Qt3DRender::QShaderProgram *mGlShader =
nullptr;
113 QgsCubeFacesSkyboxEntity(
const QString &posX,
const QString &posY,
const QString &posZ,
const QString &negX,
const QString &negY,
const QString &negZ, Qt3DCore::QNode *parent =
nullptr );
120 void reloadTexture();
123 QMap<Qt3DRender::QTextureCubeMap::CubeMapFace, QString> mCubeFacesPaths;
124 Qt3DRender::QShaderProgram *mGlShader =
nullptr;
125 QVector<Qt3DRender::QTextureImage *> mFacesTextureImages;
126 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