mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-26 06:45:59 +01:00
fix AA on borders
This commit is contained in:
parent
55776df685
commit
212f599412
1 changed files with 4 additions and 3 deletions
|
@ -86,7 +86,7 @@ void main() {
|
||||||
|
|
||||||
distances /= 4.0;
|
distances /= 4.0;
|
||||||
|
|
||||||
pixColor = pixColor * distances;
|
pixColor[3] *= distances;
|
||||||
} else if (dist > radius || dist < radius - thick)
|
} else if (dist > radius || dist < radius - thick)
|
||||||
discard;
|
discard;
|
||||||
|
|
||||||
|
@ -111,8 +111,9 @@ void main() {
|
||||||
if (pixColor[3] == 0.0)
|
if (pixColor[3] == 0.0)
|
||||||
discard;
|
discard;
|
||||||
|
|
||||||
pixColor = getColorForCoord(v_texcoord) * pixColor[3];
|
float pixColor3 = pixColor[3];
|
||||||
pixColor[3] *= alpha;
|
pixColor = getColorForCoord(v_texcoord);
|
||||||
|
pixColor[3] *= alpha * pixColor3;
|
||||||
|
|
||||||
gl_FragColor = pixColor;
|
gl_FragColor = pixColor;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue