projects
/
profile
/
ivi
/
qtdeclarative.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
QML_RUNTIME_TESTING should be disabled by default.
[profile/ivi/qtdeclarative.git]
/
tests
/
auto
/
qtquick2
/
qquickitemlayer
/
data
/
Effect.qml
1
import QtQuick 2.0
2
3
Item
4
{
5
width: 100
6
height: 100
7
8
Rectangle {
9
id: box
10
width: 100
11
height: 100
12
13
color: "#0000ff"
14
15
Rectangle {
16
x: 50
17
width: 50
18
height: 100
19
color: "#00ff00"
20
}
21
22
layer.enabled: true
23
layer.effect: ShaderEffect {
24
fragmentShader: "
25
uniform lowp sampler2D source;
26
uniform lowp float qt_Opacity;
27
varying highp vec2 qt_TexCoord0;
28
void main() {
29
gl_FragColor = texture2D(source, qt_TexCoord0).bgra * qt_Opacity;
30
}"
31
}
32
33
}
34
}