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;