This commit is contained in:
ChaoticByte 2024-09-27 20:43:08 +02:00
parent 1f9cc961f5
commit 642e98b44e
No known key found for this signature in database

View file

@ -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;