From 642e98b44e5a2e242833b39a31f69a80a5e5fd64 Mon Sep 17 00:00:00 2001 From: ChaoticByte Date: Fri, 27 Sep 2024 20:43:08 +0200 Subject: [PATCH] lul --- core/shaders/screen_effects.gdshader | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/shaders/screen_effects.gdshader b/core/shaders/screen_effects.gdshader index 2b5548f..79844b7 100644 --- a/core/shaders/screen_effects.gdshader +++ b/core/shaders/screen_effects.gdshader @@ -18,8 +18,8 @@ bool is_edge(int radius, vec2 screen_uv, vec2 screen_pixel_size) { bool ed_found_bg = false; bool ed_found_color = false; // check neighbor pixels - for (int x = -radius; x < radius+1; x++) { - for (int y = -radius; y < radius+1; y++) { + for (int x = -radius; x <= radius; x++) { + for (int y = -radius; y <= radius; y++) { vec4 p = texture(screen_texture, screen_uv + (vec2(float(x), float(y)) * screen_pixel_size)); if (p.rgb == BLACK) { ed_found_bg = true;