From dfeced789a84df2959635929f28561c9e5cb0cc1 Mon Sep 17 00:00:00 2001 From: Jared Moulton Date: Sun, 19 Nov 2023 21:57:30 +0100 Subject: [PATCH] Fix box shadow alpha (#3) The alpha channel was only being used to "dim" the shadow effect. Now that "dimming" value is multiplied by the alpha channel as well Use alpha for rect painting (#4) --- src/shader.wgsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shader.wgsl b/src/shader.wgsl index c249520..21c48b7 100644 --- a/src/shader.wgsl +++ b/src/shader.wgsl @@ -720,7 +720,7 @@ fn fs_main( y += step; } - return s * vec4(paint.inner_color.rgb, value); + return s * vec4(paint.inner_color.rgb, value * paint.inner_color.a); } if(prim.prim_type == 8u) { // vgerGlyph