diff options
Diffstat (limited to 'assets/shaders')
-rw-r--r-- | assets/shaders/outline_post_process.wgsl | 5 |
1 files changed, 3 insertions, 2 deletions
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; |