mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-08 06:46:00 +01:00
renderer: fix missing premultiplication for border multisampling
This commit is contained in:
parent
6c10c38481
commit
6e53c47e68
1 changed files with 3 additions and 2 deletions
|
@ -54,6 +54,7 @@ void main() {
|
|||
highp vec2 pixCoord = vec2(gl_FragCoord);
|
||||
highp vec2 originalPixCoord = v_texcoord;
|
||||
originalPixCoord *= fullSizeUntransformed;
|
||||
float additionalAlpha = 1.0;
|
||||
|
||||
vec4 pixColor = vec4(1.0, 1.0, 1.0, 1.0);
|
||||
|
||||
|
@ -86,7 +87,7 @@ void main() {
|
|||
|
||||
distances /= 4.0;
|
||||
|
||||
pixColor[3] *= distances;
|
||||
additionalAlpha *= distances;
|
||||
} else if (dist > radius || dist < radius - thick)
|
||||
discard;
|
||||
|
||||
|
@ -113,6 +114,6 @@ void main() {
|
|||
|
||||
pixColor = getColorForCoord(v_texcoord);
|
||||
|
||||
gl_FragColor = pixColor * alpha;
|
||||
gl_FragColor = pixColor * alpha * additionalAlpha;
|
||||
}
|
||||
)#";
|
||||
|
|
Loading…
Reference in a new issue