From 8aaf5b56fdb0162a78aedfcf4f990b51dadc4db5 Mon Sep 17 00:00:00 2001 From: Hordur Johannsson Date: Wed, 14 Aug 2024 20:26:40 +0000 Subject: [PATCH] Fixing alpha channel for text #1245 --- src/gfx/text.wgsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gfx/text.wgsl b/src/gfx/text.wgsl index 11986cef61..dd5566b5db 100644 --- a/src/gfx/text.wgsl +++ b/src/gfx/text.wgsl @@ -113,5 +113,5 @@ fn fragMain( if (c.a <= 0.0) { discard; } - return vec4(color.rgb * c.a, color.a); + return vec4(color.rgb, color.a * c.a); }