mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-15 06:40:08 +00:00
gl renderer: Fix text color pre-multiplication
This commit is contained in:
parent
f55be762e2
commit
f729cbb760
@ -7,7 +7,7 @@ void main() {
|
|||||||
// pre-multiply
|
// pre-multiply
|
||||||
color.rgb *= color.a;
|
color.rgb *= color.a;
|
||||||
|
|
||||||
color = vec4(u_color.rgb * diffuse.a * u_alpha, diffuse.a * color.a * u_alpha);
|
// u_source is drawn using cairo, so already pre-multiplied.
|
||||||
|
|
||||||
setOutputColor(color);
|
setOutputColor(color * diffuse * u_alpha);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user