From 29c347ff9c7522bbef02be5cd117f8e4bbfa2080 Mon Sep 17 00:00:00 2001 From: Emmet Date: Mon, 4 Aug 2025 10:12:39 -0500 Subject: [PATCH] Fix grayscale shader to gles 3 --- modules/user/hyprland/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/user/hyprland/default.nix b/modules/user/hyprland/default.nix index 3e83edb8..29d7e535 100644 --- a/modules/user/hyprland/default.nix +++ b/modules/user/hyprland/default.nix @@ -575,10 +575,12 @@ in /* * Grayscale */ + #version 300 es precision highp float; - varying vec2 v_texcoord; + in vec2 v_texcoord; uniform sampler2D tex; + out vec4 fragColor; // Enum for type of grayscale conversion const int LUMINOSITY = 0; @@ -623,7 +625,7 @@ in } vec3 grayscale = vec3(gray); - gl_FragColor = vec4(grayscale, pixColor.a); + fragColor = vec4(grayscale, pixColor.a); } ''; home.file.".config/ashell/config.toml".text = ''