mirror of
https://github.com/yshui/picom.git
synced 2024-10-27 05:24:17 -04:00
12 lines
233 B
Text
12 lines
233 B
Text
|
uniform float opacity;
|
||
|
uniform bool invert_color;
|
||
|
uniform sampler2D tex;
|
||
|
|
||
|
void main() {
|
||
|
vec4 c = texture2D(tex, gl_TexCoord[0]);
|
||
|
if (invert_color)
|
||
|
c = vec4(vec3(c.a, c.a, c.a) - vec3(c), c.a);
|
||
|
c *= opacity;
|
||
|
gl_FragColor = c;
|
||
|
}
|