From 1640170329ac08b47d443c7773702be8ca61400b Mon Sep 17 00:00:00 2001 From: Jared Moulton Date: Sun, 19 Nov 2023 13:57:30 -0700 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 --- src/shader.wgsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shader.wgsl b/src/shader.wgsl index d3587c2..34b0875 100644 --- a/src/shader.wgsl +++ b/src/shader.wgsl @@ -718,7 +718,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