mirror of
https://github.com/yshui/picom.git
synced 2024-12-02 14:15:41 -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;
|
||
|
}
|