summaryrefslogtreecommitdiffstats
path: root/examples/qt3d/anaglyph-rendering
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 /examples/qt3d/anaglyph-rendering
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 'examples/qt3d/anaglyph-rendering')
-rw-r--r--examples/qt3d/anaglyph-rendering/main.qml1
1 files changed, 0 insertions, 1 deletions
diff --git a/examples/qt3d/anaglyph-rendering/main.qml b/examples/qt3d/anaglyph-rendering/main.qml
index 3510850a2..89e5c3664 100644
--- a/examples/qt3d/anaglyph-rendering/main.qml
+++ b/examples/qt3d/anaglyph-rendering/main.qml
@@ -86,7 +86,6 @@ Entity {
// Skybox
SkyboxEntity {
- cameraPosition: stereoCamera.position
baseName: "qrc:/assets/cubemaps/miramar/miramar"
extension: ".webp"
}