Debian Codegraph @

tests/manual/scenegraph_lancelot/data/shaders/live/liveonce_2.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 Rectangle {
15 width: 50
16 height: 50
17 color: "red"
18 anchors.centerIn: parent
19 transform: Rotation { angle: 90 }
20 }
21 }
22
23 ShaderEffectSource {
24 id: source
25 sourceItem: text
26 smooth: true
27 }
28
29 ShaderEffect {
30 width: parent.width
31 height: parent.height / 2
32
33 property variant source: source
34
35 fragmentShader: "qrc:shaders/gradient3.frag"
36 }
37 }