From 630f68060f59b93e02af3325b2021b8a832afed9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20Mart=C3=ADnez=20Palacio?= Date: Thu, 5 Dec 2024 03:37:44 +0100 Subject: [PATCH] Fix LCD Display scaling up on platforms other than Windows --- Shaders/lcd.gdshader | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shaders/lcd.gdshader b/Shaders/lcd.gdshader index 987ded0..d92241d 100644 --- a/Shaders/lcd.gdshader +++ b/Shaders/lcd.gdshader @@ -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;