🔧 Fix straight alpha

This commit is contained in:
Simon Schneegans
2022-05-08 13:52:16 +02:00
parent 317eaa2969
commit a28e406da4
+2 -1
View File
@@ -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);