forked from AuroraMiddleware/gtk
gl renderer: Fix coloring shader
We *just* pre-multiplied u_color but then didn't use its rgb values. This fixes backdrop scale marks in Adwaita to not be white.
This commit is contained in:
parent
3e2107846d
commit
4869013a8d
@ -8,7 +8,8 @@ void main() {
|
||||
color.rgb *= color.a;
|
||||
|
||||
// u_source is drawn using cairo, so already pre-multiplied.
|
||||
color = vec4(u_color.rgb * diffuse.a * u_alpha, diffuse.a * color.a * u_alpha);
|
||||
color = vec4(color.rgb * diffuse.a * u_alpha,
|
||||
color.a * diffuse.a * u_alpha);
|
||||
|
||||
setOutputColor(color);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user