diff options
author | Timm Bäder <mail@baedert.org> | 2019-05-18 09:33:38 +0200 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2019-05-18 13:47:59 +0200 |
commit | a2518493a2bbd77d205d65c3886fe426c5030a9d (patch) | |
tree | 24b75afe2c224e7ad46d7dc1998bac8628cd634c /gsk | |
parent | 2979aea3ae674cbc1e318d1c884e86ededb17399 (diff) | |
download | gtk+-a2518493a2bbd77d205d65c3886fe426c5030a9d.tar.gz |
gl renderer: Fix color matrix shader
We *just* computed a un-premultiplied color, maybe we should also use
it.
Diffstat (limited to 'gsk')
-rw-r--r-- | gsk/resources/glsl/color_matrix.fs.glsl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gsk/resources/glsl/color_matrix.fs.glsl b/gsk/resources/glsl/color_matrix.fs.glsl index 07875fe0b4..284e0a9e65 100644 --- a/gsk/resources/glsl/color_matrix.fs.glsl +++ b/gsk/resources/glsl/color_matrix.fs.glsl @@ -11,7 +11,7 @@ void main() { if (color.a != 0.0) color.rgb /= color.a; - color = u_color_matrix * diffuse + u_color_offset; + color = u_color_matrix * color + u_color_offset; color = clamp(color, 0.0f, 1.0f); color.rgb *= color.a; |