gl renderer: Fix text color pre-multiplication

This commit is contained in:
Timm Bäder 2018-01-04 11:41:51 +01:00
parent f55be762e2
commit f729cbb760

View File

@ -7,7 +7,7 @@ void main() {
// pre-multiply
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);
}