diff options
| author | marcellus <msimon_fr@hotmail.com> | 2025-07-03 17:20:02 +0200 |
|---|---|---|
| committer | marcellus <msimon_fr@hotmail.com> | 2025-07-03 17:20:02 +0200 |
| commit | d55e32e79a6b1280952eec4b108c9a47e1fad514 (patch) | |
| tree | 699ae85d853e042f00e7e8873426d9d657de5d85 /picom/default.glsl | |
| parent | e16918bc16c392abc303eb20a8a28545b599bfc1 (diff) | |
update
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); +} |
