summaryrefslogtreecommitdiff
path: root/raveos-theme/gnome/theme-data/extensions/installed/blur-my-shell@aunetx/effects/upscale.glsl
diff options
context:
space:
mode:
authorAlexanderCurl <alexc@alexc.hu>2026-04-18 17:46:06 +0100
committerAlexanderCurl <alexc@alexc.hu>2026-04-18 17:46:06 +0100
commit70ca3fef77ee8bdc6e3ac28589a6fa08c024cc69 (patch)
treeab1123d4067c1b086dd6faa7ee4ea643236b565a /raveos-theme/gnome/theme-data/extensions/installed/blur-my-shell@aunetx/effects/upscale.glsl
parent5d94c0a7d44a2255b81815a52a7056a94a39842d (diff)
downloadRaveOS-PKGBUILD-70ca3fef77ee8bdc6e3ac28589a6fa08c024cc69.tar.gz
RaveOS-PKGBUILD-70ca3fef77ee8bdc6e3ac28589a6fa08c024cc69.zip
Replaced file structures for themes in the correct format
Diffstat (limited to 'raveos-theme/gnome/theme-data/extensions/installed/blur-my-shell@aunetx/effects/upscale.glsl')
-rw-r--r--raveos-theme/gnome/theme-data/extensions/installed/blur-my-shell@aunetx/effects/upscale.glsl57
1 files changed, 0 insertions, 57 deletions
diff --git a/raveos-theme/gnome/theme-data/extensions/installed/blur-my-shell@aunetx/effects/upscale.glsl b/raveos-theme/gnome/theme-data/extensions/installed/blur-my-shell@aunetx/effects/upscale.glsl
deleted file mode 100644
index 5cc06ec..0000000
--- a/raveos-theme/gnome/theme-data/extensions/installed/blur-my-shell@aunetx/effects/upscale.glsl
+++ /dev/null
@@ -1,57 +0,0 @@
-uniform sampler2D tex;
-uniform int factor;
-uniform float width;
-uniform float height;
-
-#define CORRECTION 2.25
-#define SIZE_ADDITION 3
-
-vec4 get_texture_at_position(vec2 position) {
- vec2 raw_position = position + vec2(CORRECTION, CORRECTION);
- vec2 raw_uv = raw_position / vec2(width + SIZE_ADDITION, height + SIZE_ADDITION);
-
- return texture2D(tex, raw_uv);
-}
-
-ivec2 get_corrected_position() {
- vec2 raw_uv = cogl_tex_coord0_in.st;
- vec2 raw_position = raw_uv * vec2(width + SIZE_ADDITION, height + SIZE_ADDITION);
- return ivec2(raw_position - vec2(CORRECTION, CORRECTION));
-}
-
-void main() {
- ivec2 corrected_position = get_corrected_position();
-
- vec2 adjusted_position = corrected_position / factor;
-
- cogl_color_out = get_texture_at_position(adjusted_position);
-
- // round
- if (distance(corrected_position, (floor(adjusted_position) + 0.5) * factor) < factor / 2.5) {
- //cogl_color_out = get_texture_at_position(adjusted_position);
- } else {
- //cogl_color_out = vec4(0, 0, 0, 1);
- }
-
- // square
- if (mod(corrected_position.x, factor) >= 2 && mod(corrected_position.y, factor) >= 2) {
- //cogl_color_out = get_texture_at_position(adjusted_position);
- } else {
- //cogl_color_out = vec4(0, 0, 0, 1);
- }
-
- // local mix
- vec4 color = vec4(0);
- int count = 0;
- for (int i = -1; i <= 1; i++) {
- for (int j = -1; j <= 1; j++) {
- vec2 lookup_position = adjusted_position + vec2(i, j);
- if (all(greaterThanEqual(lookup_position, vec2(0, 0))) &&
- all(lessThan(lookup_position, vec2(width, height) / factor))) {
- color += get_texture_at_position(lookup_position);
- count += 1;
- }
- }
- }
- //cogl_color_out = color / count;
-} \ No newline at end of file