summaryrefslogtreecommitdiffstats
path: root/examples/qt3d/planets-qml/ShadowEffect.qml
Commit message (Collapse)AuthorAgeFilesLines
* Fix planets-qml inner planets shadingSean Harmer2016-06-031-2/+2
| | | | | | | | | | | | | | | | | | | | | | * 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>
* Fixed sun in planets-qmlTomi Korpipää2016-06-031-0/+148
Also removed duplicate code and made some rearrangements in entities. Change-Id: I7f588672a1694fc440318f66bcfbe33d5ebcf0ab Reviewed-by: Sean Harmer <sean.harmer@kdab.com>