We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd0f4fd commit 535d547Copy full SHA for 535d547
extension.js
@@ -37,7 +37,9 @@ const InvertWindowEffect = new Lang.Class({
37
uniform sampler2D tex; \
38
void main() { \
39
vec4 color = texture2D(tex, cogl_tex_coord_in[0].st); \
40
- color.rgb /= color.a; \
+ if(color.a > 0.0) { \
41
+ color.rgb /= color.a; \
42
+ } \
43
color.rgb = vec3(1.0, 1.0, 1.0) - color.rgb; \
44
color.rgb *= color.a; \
45
cogl_color_out = color * cogl_color_in; \
0 commit comments