Chromakey: Fix alpha channel bug

Fixes bug where elements that are smaller than the main texture were
croping layers below them when keyed.
This commit is contained in:
Thomas Wilshaw
2022-10-09 16:19:49 +01:00
parent fc64f9e8a4
commit cae71f011d
+1 -2
View File
@@ -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;