From 918970f5f0283ebff7c0a33f4d87f88283fdbb3e Mon Sep 17 00:00:00 2001 From: Paul Lemire Date: Fri, 19 Aug 2016 08:42:54 +0200 Subject: 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 --- examples/qt3d/anaglyph-rendering/main.qml | 1 - 1 file changed, 1 deletion(-) (limited to 'examples/qt3d/anaglyph-rendering') 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" } -- cgit v1.2.3