☰
Debian Codegraph
@
5.15.19+dfsg-2
5.15.17+dfsg-4
/
/
tests
/
manual
/
scenegraph_lancelot
/
data
/
shared
/
shaders
/
desaturate.frag
☽
☼
tests/manual/scenegraph_lancelot/data/shared/shaders/desaturate.frag
code
plain
raw
GPL-3 with Qt-1.0 exception
2016-2021 The Qt Company Ltd.
debian/copyright
1
uniform lowp sampler2D source;
2
varying highp vec2 qt_TexCoord0;
3
4
void main() {
5
lowp vec4 c = texture2D(source, qt_TexCoord0);
6
lowp float level = c.r * 0.3 + c.g * 0.59 + c.b * 0.11;
7
8
gl_FragColor = vec4(level, level, level, c.a);
9
}