From a28e406da4ecd9ce8c16d2ec160d935b9d635471 Mon Sep 17 00:00:00 2001 From: Simon Schneegans Date: Sun, 8 May 2022 13:52:16 +0200 Subject: [PATCH] :wrench: Fix straight alpha --- src/Apparition.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Apparition.js b/src/Apparition.js index 003ac68..c13e08d 100644 --- a/src/Apparition.js +++ b/src/Apparition.js @@ -219,7 +219,8 @@ if (utils.isInShellProcess()) { coords = vec2(dot(coords, vec2(c, -s)), dot(coords, vec2(s, c))); // Fade out the window texture. - cogl_color_out = texture2D(uTexture, coords + center) * (1.0 - progress); + cogl_color_out = texture2D(uTexture, coords + center); + cogl_color_out.a *= 1.0 - progress; `; this.add_glsl_snippet(Shell.SnippetHook.FRAGMENT, declarations, code, true);