aboutsummaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
authorLibravatar Silas Bartha <[email protected]>2024-07-22 13:48:57 -0400
committerLibravatar Silas Bartha <[email protected]>2024-07-22 13:48:57 -0400
commit46230d66646199e88e13d74a16ca9a2baaaae88a (patch)
tree67309cb6539706d8ae936cc76688d55780c9a9ff /assets
parent294e8bb07ab5635118e9428901c1e92a478c29b0 (diff)
Update to 0.14 + Add 0BSD optionv0.3.0
Diffstat (limited to 'assets')
-rw-r--r--assets/shaders/outline_post_process.wgsl5
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;