aboutsummaryrefslogtreecommitdiffstats
path: root/tests/baseline/scenegraph/data/shaders/source/visible_1.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/baseline/scenegraph/data/shaders/source/visible_1.qml')
-rw-r--r--tests/baseline/scenegraph/data/shaders/source/visible_1.qml32
1 files changed, 32 insertions, 0 deletions
diff --git a/tests/baseline/scenegraph/data/shaders/source/visible_1.qml b/tests/baseline/scenegraph/data/shaders/source/visible_1.qml
new file mode 100644
index 0000000000..32625baecf
--- /dev/null
+++ b/tests/baseline/scenegraph/data/shaders/source/visible_1.qml
@@ -0,0 +1,32 @@
+import QtQuick 2.0
+
+Item {
+ width: 320
+ height: 480
+
+ Text {
+ id: text
+ anchors.horizontalCenter: parent.horizontalCenter
+ anchors.top: parent.top
+ font.pixelSize: 80
+ text: "Shaderz!"
+ }
+
+ ShaderEffectSource {
+ id: source
+ sourceItem: text
+ hideSource: true
+ }
+
+ ShaderEffect {
+ id: effect
+ anchors.top: text.bottom
+ anchors.left: text.left
+ width: text.width
+ height: text.height
+
+ property variant source: source
+
+ fragmentShader: "qrc:shaders/gradient.frag.qsb"
+ }
+}