Fixed shaders endings

This commit is contained in:
Фёдор Веселов 2024-09-23 21:45:44 +05:00
commit a126777a89
2 changed files with 2 additions and 3 deletions

View file

@ -10,4 +10,3 @@ vec4 luminance(vec4 col)
void fragment() {
COLOR = mix(COLOR, luminance(COLOR),amount);
}

View file

@ -13,11 +13,11 @@ void fragment() {
}
}
vec4 colour = textureLod(screen_texture, SCREEN_UV,0.0);
if (colour.a > 0.0001) {
colour.rgb /= colour.a;
}
vec4 outline = vec4(line_colour, min(line_alpha, 1.0));
COLOR *= mix(outline, colour, colour.a);
}