Debian Codegraph @

tests/manual/scenegraph_lancelot/data/shaders/source/one-source.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 anchors.fill: text;
23
24 property variant source: source
25
26 fragmentShader: "qrc:shaders/gradient.frag"
27 }
28 }