☰
Debian Codegraph
@
13-1
/
/
compton-default-fshader-win.glsl
☽
☼
compton-default-fshader-win.glsl
code
plain
raw
Expat
and
MPL-2.0
2003 Carl Worth <
[email protected]
>; 2003-2005 Eric Anholt <
[email protected]
>; 2003-2004 Keith Packard <
[email protected]
>; 2003 Matthew Allum <
[email protected]
>; 2004 Phil Blundell <
[email protected]
>; 2016-2024 Yuxuan Shui <
[email protected]
debian/copyright
1
uniform float opacity;
2
uniform bool invert_color;
3
uniform sampler2D tex;
4
5
void main() {
6
vec4 c = texture2D(tex, gl_TexCoord[0]);
7
if (invert_color)
8
c = vec4(vec3(c.a, c.a, c.a) - vec3(c), c.a);
9
c *= opacity;
10
gl_FragColor = c;
11
}