From d01849886d0309ce61a24bfa0603580540a3a308 Mon Sep 17 00:00:00 2001 From: Amadej Kastelic Date: Wed, 11 Sep 2024 22:43:21 +0200 Subject: [PATCH] Fix tests, bump version --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/shaders/vibrance.rs | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index d4ece1f..553ad00 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -291,7 +291,7 @@ dependencies = [ [[package]] name = "hyprlux" -version = "0.1.0" +version = "0.1.1" dependencies = [ "chrono", "colog", diff --git a/Cargo.toml b/Cargo.toml index 0b9b845..3e6ef1b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "hyprlux" -version = "0.1.0" +version = "0.1.1" edition = "2021" [dependencies] diff --git a/src/shaders/vibrance.rs b/src/shaders/vibrance.rs index 5f23d4f..301f1dc 100644 --- a/src/shaders/vibrance.rs +++ b/src/shaders/vibrance.rs @@ -21,7 +21,6 @@ void main() {{ vec4 pixColor = texture2D(tex, v_texcoord); vec3 color = vec3(pixColor[0], pixColor[1], pixColor[2]); - // vec3 VIB_coefLuma = vec3(0.333333, 0.333334, 0.333333); // was for `if VIB_LUMA == 1` vec3 VIB_coefLuma = vec3(0.212656, 0.715158, 0.072186); // try both and see which one looks nicer. float luma = dot(VIB_coefLuma, color); @@ -173,7 +172,7 @@ mod tests { (new(string.clone(), string.clone(), 90), "0.90".to_string()), ( new(string.clone(), string.clone(), 10000), - "1.00".to_string(), + "10.00".to_string(), ), (new(string.clone(), string.clone(), 0), "0.01".to_string()), (new(string.clone(), string.clone(), -10), "0.01".to_string()),