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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user