Debian Codegraph @

tests/manual/scenegraph_lancelot/data/shaders/live/samesource.qml

raw
1 import QtQuick 2.0
2
3 Item {
4 width: 320
5 height: 480
6
7 Text {
8 id: text
9 anchors.centerIn: parent
10 font.pixelSize: 80
11 text: "Shaderz!"
12 visible: false
13 }
14
15 ShaderEffectSource {
16 id: source
17 sourceItem: text
18 smooth: true
19 }
20
21 ShaderEffect {
22 width: parent.width
23 height: parent.height / 2
24
25 property variant source: source
26
27 fragmentShader: "qrc:shaders/gradient3.frag"
28 }
29
30 ShaderEffect {
31 width: parent.width
32 y: parent.height / 2
33 height: parent.height / 2
34
35 property variant source: source
36
37 fragmentShader: "qrc:shaders/gradient5.frag"
38 }
39 }