Commit 6598fcac authored by Gaëtan Renaudeau's avatar Gaëtan Renaudeau

There were no such alpha issue, the example was 'broken'. Fixes #9 .

parent 8337a27d
...@@ -13,7 +13,7 @@ uniform sampler2D t2; ...@@ -13,7 +13,7 @@ uniform sampler2D t2;
void main () { void main () {
vec4 c1 = texture2D(t1, uv); vec4 c1 = texture2D(t1, uv);
vec4 c2 = texture2D(t2, uv); vec4 c2 = texture2D(t2, uv);
gl_FragColor = mix(c1, c2, c2.a); gl_FragColor = vec4(mix(c1.rgb, c2.rgb, c2.a), 1.0);
} }
` `
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment