mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-05 14:59:27 -05:00
anti-flashbang: adjust brightness curve
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user