summaryrefslogtreecommitdiff
path: root/gsk
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2020-10-01 06:18:37 +0200
committerMatthias Clasen <mclasen@redhat.com>2020-10-14 15:06:12 -0400
commit7222a0901d7953210d3e270f01acd510d34ee354 (patch)
treeb2125b5886b8399eb8475465eb8f67b519d147a3 /gsk
parenta0bb248bb382a1b86f1a18aba83f5a86ac66a22f (diff)
downloadgtk+-7222a0901d7953210d3e270f01acd510d34ee354.tar.gz
unblurred outset shadow shader: Use premultiply()
Diffstat (limited to 'gsk')
-rw-r--r--gsk/resources/glsl/unblurred_outset_shadow.glsl4
1 files changed, 1 insertions, 3 deletions
diff --git a/gsk/resources/glsl/unblurred_outset_shadow.glsl b/gsk/resources/glsl/unblurred_outset_shadow.glsl
index fe7ad742d3..f110370412 100644
--- a/gsk/resources/glsl/unblurred_outset_shadow.glsl
+++ b/gsk/resources/glsl/unblurred_outset_shadow.glsl
@@ -11,9 +11,7 @@ _OUT_ _GSK_ROUNDED_RECT_UNIFORM_ transformed_inside_outline;
void main() {
gl_Position = u_projection * u_modelview * vec4(aPosition, 0.0, 1.0);
- final_color = u_color;
- final_color.rgb *= final_color.a;
- final_color *= u_alpha;
+ final_color = gsk_premultiply(u_color) * u_alpha;
GskRoundedRect inside = gsk_create_rect(u_outline_rect);
GskRoundedRect outside = gsk_rounded_rect_shrink(inside, vec4(- u_spread));