diff options
Diffstat (limited to 'picom/default.glsl')
| -rw-r--r-- | picom/default.glsl | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/picom/default.glsl b/picom/default.glsl new file mode 100644 index 0000000..e433f4b --- /dev/null +++ b/picom/default.glsl @@ -0,0 +1,19 @@ +#version 330 +in vec2 texcoord; // texture coordinate of the fragment + +uniform sampler2D tex; // texture of the window + +// Default window post-processing: +// 1) invert color +// 2) opacity / transparency +// 3) max-brightness clamping +// 4) rounded corners +vec4 default_post_processing(vec4 c); + +// Default window shader: +// 1) fetch the specified pixel +// 2) apply default post-processing +vec4 window_shader() { + vec4 c = texelFetch(tex, ivec2(texcoord), 0); + return default_post_processing(c); +} |
