From 950356e47dab647836454b5c787b0352fe965113 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Sun, 22 Mar 2026 10:09:11 +0100 Subject: [PATCH] anti-flashbang: adjust brightness curve --- .../services/hyprlandAntiFlashbangShader/anti-flashbang.glsl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dots/.config/quickshell/ii/services/hyprlandAntiFlashbangShader/anti-flashbang.glsl b/dots/.config/quickshell/ii/services/hyprlandAntiFlashbangShader/anti-flashbang.glsl index 32e6ad2ed..e9d41551d 100644 --- a/dots/.config/quickshell/ii/services/hyprlandAntiFlashbangShader/anti-flashbang.glsl +++ b/dots/.config/quickshell/ii/services/hyprlandAntiFlashbangShader/anti-flashbang.glsl @@ -10,9 +10,9 @@ float overlayOpacityForBrightness(float x) { // Will a fancy curve help?... I'll have to experiment more at night // float y = pow(x, 2.0) * 0.75; - // float y = (1.0 - exp(-x))*1.15; + float y = (1.0 - exp(-x))*1.19; // float y = (1.0 - exp(-pow((x-0.15), 0.6)))*1.18; - float y = x*0.75; + // float y = x*0.75; return min(max(y, 0.001), 1.0); }