summaryrefslogtreecommitdiffstats
path: root/src/extras/defaults/qskyboxentity_p.h
diff options
context:
space:
mode:
authorPaul Lemire <paul.lemire@kdab.com>2016-08-19 08:42:54 +0200
committerPaul Lemire <paul.lemire@kdab.com>2016-08-26 05:59:44 +0000
commit918970f5f0283ebff7c0a33f4d87f88283fdbb3e (patch)
tree806e37f31d10bb4eb25cf538f558f94388630c1f /src/extras/defaults/qskyboxentity_p.h
parentca85c459cdff08a04d3d6420ea7d00c3d1eaeea7 (diff)
QSkyboxEntity: remove camera translation property
If we convert a mat4 matrix to a mat3 matrix, then back to a mat4, this removes the translation component from it. Making the skybox shaders use that property allows to remove references to the camera translation in QSkyboxEntity. This makes using a skybox neater as we don't need to care about the Camera position anymore. This also allows to render the same skybox with different cameras which required to have duplicate QSkyboxEntity previously. Change-Id: I1adddd17d151e4d26d0f19b048df88dbf738042b Reviewed-by: Kevin Ottens <kevin.ottens@kdab.com>
Diffstat (limited to 'src/extras/defaults/qskyboxentity_p.h')
-rw-r--r--src/extras/defaults/qskyboxentity_p.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/extras/defaults/qskyboxentity_p.h b/src/extras/defaults/qskyboxentity_p.h
index 565caa66d..effe97fce 100644
--- a/src/extras/defaults/qskyboxentity_p.h
+++ b/src/extras/defaults/qskyboxentity_p.h
@@ -56,10 +56,6 @@
QT_BEGIN_NAMESPACE
-namespace Qt3DCore {
-class QTransform;
-}
-
namespace Qt3DRender {
class QFilterKey;
@@ -101,7 +97,6 @@ class QSkyboxEntityPrivate : public Qt3DCore::QEntityPrivate
Qt3DRender::QRenderPass *m_es2RenderPass;
Qt3DRender::QRenderPass *m_gl3RenderPass;
QCuboidMesh *m_mesh;
- Qt3DCore::QTransform *m_transform;
Qt3DRender::QParameter *m_textureParameter;
Qt3DRender::QTextureImage *m_posXImage;
Qt3DRender:: QTextureImage *m_posYImage;