Fix LCD Display scaling up on platforms other than Windows

This commit is contained in:
Mario Martínez 2024-12-05 03:37:44 +01:00
parent a5abed6e8d
commit 630f68060f

View file

@ -5,7 +5,7 @@ uniform int spacing = 2;
uniform float scale = 1.0;
void fragment() {
vec2 uv = mod((FRAGCOORD.xy / scale) * TEXTURE_PIXEL_SIZE.xy, float(spacing));
vec2 uv = mod((SCREEN_UV.xy / SCREEN_PIXEL_SIZE) / scale, float(spacing));
vec4 color = vec4(COLOR.rgb, 0.0);
if(int(uv.y) == 0 || int(uv.x) == 0) {
color.a = line_opacity;