From 6598fcac53f03cb1372e8d1a90fd8127df389f51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Renaudeau?= Date: Fri, 18 Sep 2015 16:00:55 +0200 Subject: [PATCH] There were no such alpha issue, the example was 'broken'. Fixes #9 . --- Examples/Tests/Layer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Examples/Tests/Layer.js b/Examples/Tests/Layer.js index e495b69..ff2d490 100644 --- a/Examples/Tests/Layer.js +++ b/Examples/Tests/Layer.js @@ -13,7 +13,7 @@ uniform sampler2D t2; void main () { vec4 c1 = texture2D(t1, 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); } ` } -- 2.26.2