Added realtime reflections on the frame. They are a little bit hacky but don't have any impact on performances.

This commit is contained in:
Filippo Scognamiglio
2014-04-05 15:14:52 +02:00
parent 80404ffe89
commit e62ee54aea
10 changed files with 77 additions and 19 deletions
+8
View File
@@ -13,6 +13,14 @@ Item{
property rect sourceRect
property string shaderString
//Values used to displace the texture in the screen. Used to make reflections correct.
property real displacementLeft
property real displacementTop
property real displacementRight
property real displacementBottom
property real distortionCoefficient
BorderImage{
id: frameimage
anchors.centerIn: parent