summaryrefslogtreecommitdiffstats
path: root/examples/qt3d/planets-qml/planets-qml.qrc
diff options
context:
space:
mode:
authorSean Harmer <sean.harmer@kdab.com>2016-06-01 12:00:17 +0100
committerJani Heikkinen <jani.heikkinen@qt.io>2016-06-03 06:26:34 +0000
commite45a8e05d1cbcaf8f20ad6989a2c0c25e2e2dc5e (patch)
treed1e809a1be843833b81c2a24a47cecd4b4063c25 /examples/qt3d/planets-qml/planets-qml.qrc
parentedc5b80b4e9bcd1d494c4dc92aff8316238ed8b8 (diff)
Fix planets-qml inner planets shading
* The shadow light was using the undefined matrix property which resulted in a matrix full of NaN's in the shader. This caused everything to be fully in shadows for the inner planets. Fixed to use the correct viewMatrix property. * After fixing the above, it became clear that the inner planets were being shadowed with lots of artifacts. The only shadow casters are the planets Saturn and Uranus and their rings. In this configuration it makes no sense to try to shadow the other planets as this leads to bad shadow acne due to the huge distances involved vs the limited precision of the shadow depth texture. Fixed these artifacts by only applying shadows to Saturn and Uranus. Task-number: QTBUG-53751 Change-Id: I96ab08117c9988c40f083a1345ec7f7d1b0f7ce6 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io> Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io> Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'examples/qt3d/planets-qml/planets-qml.qrc')
-rw-r--r--examples/qt3d/planets-qml/planets-qml.qrc2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/qt3d/planets-qml/planets-qml.qrc b/examples/qt3d/planets-qml/planets-qml.qrc
index 4b6bd433d..ebac0bcd5 100644
--- a/examples/qt3d/planets-qml/planets-qml.qrc
+++ b/examples/qt3d/planets-qml/planets-qml.qrc
@@ -35,5 +35,7 @@
<file>shaders/es2/planetDB.vert</file>
<file>shaders/es2/planetDS.frag</file>
<file>shaders/es2/planetDSB.frag</file>
+ <file>shaders/gl3/planetDShadow.frag</file>
+ <file>shaders/gl3/planetDShadow.vert</file>
</qresource>
</RCC>