From 38c95637e95c4edbe628943d5c336ef5ede37904 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexis=20Laferri=C3=A8re?= Date: Sat, 15 Apr 2017 10:33:25 -0400 Subject: [PATCH] gamnit: lower transparency threshold to discard fragments MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Alexis Laferrière --- lib/gamnit/flat.nit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gamnit/flat.nit b/lib/gamnit/flat.nit index 6774f4f..cfd8150 100644 --- a/lib/gamnit/flat.nit +++ b/lib/gamnit/flat.nit @@ -495,7 +495,7 @@ private class Simple2dProgram { if(use_texture) { gl_FragColor = v_color * texture2D(texture0, v_coord); - if (gl_FragColor.a <= 0.1) discard; + if (gl_FragColor.a <= 0.01) discard; } else { gl_FragColor = v_color; } -- 1.7.9.5