From cae71f011d5339bff33e146516985a4cfa06ab77 Mon Sep 17 00:00:00 2001 From: Thomas Wilshaw Date: Sun, 9 Oct 2022 16:19:49 +0100 Subject: [PATCH] Chromakey: Fix alpha channel bug Fixes bug where elements that are smaller than the main texture were croping layers below them when keyed. --- app/shaders/chromakey.frag | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/shaders/chromakey.frag b/app/shaders/chromakey.frag index dc665b2e4..d3ee70e6c 100644 --- a/app/shaders/chromakey.frag +++ b/app/shaders/chromakey.frag @@ -100,8 +100,7 @@ void main() { mask = 1.0 - mask; } - col.rgb *= mask; - col.w = mask; + col *= mask; if (!mask_only_in) { frag_color = col;