Fix LCD Display scaling up on platforms other than Windows
This commit is contained in:
parent
a5abed6e8d
commit
630f68060f
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue