From 46230d66646199e88e13d74a16ca9a2baaaae88a Mon Sep 17 00:00:00 2001 From: Silas Bartha Date: Mon, 22 Jul 2024 13:48:57 -0400 Subject: Update to 0.14 + Add 0BSD option --- assets/shaders/outline_post_process.wgsl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'assets') diff --git a/assets/shaders/outline_post_process.wgsl b/assets/shaders/outline_post_process.wgsl index 5e0bf9c..d442485 100644 --- a/assets/shaders/outline_post_process.wgsl +++ b/assets/shaders/outline_post_process.wgsl @@ -35,9 +35,10 @@ fn fragment( let delta_max = max(delta_top, max(delta_right, delta_top_right)); let delta_raw = max(delta_max.x, max(delta_max.y, delta_max.z)); - let delta_clipped = clamp((delta_raw * 2.0) - settings.threshold, 0.0, 1.0); + // let delta_clipped = clamp((delta_raw * 2.0) - settings.threshold, 0.0, 1.0); + let show_outline = f32(delta_raw > settings.threshold); - var outline = vec4f(delta_clipped, delta_clipped, delta_clipped, 0.0); + var outline = vec4f(show_outline, show_outline, show_outline, 0.0); let luma = (0.2126 * screen_color.r + 0.7152 * screen_color.g + 0.0722 * screen_color.b); if settings.adaptive != 0 && luma < 0.5 { outline = outline * -1; -- cgit v1.2.3