mirror of
https://github.com/yshui/picom.git
synced 2024-11-18 13:55:36 -05: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;
|
||
|
}
|