From c0488eed596e4c2fea2e154fc4b73870ad5e8583 Mon Sep 17 00:00:00 2001 From: Silas Bartha Date: Thu, 21 Nov 2024 12:19:49 -0500 Subject: Tweak luma comparison --- assets/shaders/dither_post_process.wgsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'assets/shaders/dither_post_process.wgsl') diff --git a/assets/shaders/dither_post_process.wgsl b/assets/shaders/dither_post_process.wgsl index 6440d0d..47f6735 100644 --- a/assets/shaders/dither_post_process.wgsl +++ b/assets/shaders/dither_post_process.wgsl @@ -18,7 +18,7 @@ fn fragment( let base_color = textureSample(screen_texture, screen_sampler, in.uv); let luma = (0.2126 * base_color.r + 0.7152 * base_color.g + 0.0722 * base_color.b); - let value = f32(luma >= threshold); + let value = f32(luma > threshold); return vec4f(value, value, value, 1.0); } -- cgit v1.2.3