gamnit: lower transparency threshold to discard fragments
authorAlexis Laferrière <alexis.laf@xymus.net>
Sat, 15 Apr 2017 14:33:25 +0000 (10:33 -0400)
committerAlexis Laferrière <alexis.laf@xymus.net>
Mon, 1 May 2017 14:40:52 +0000 (10:40 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

lib/gamnit/flat.nit

index 6774f4f..cfd8150 100644 (file)
@@ -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;
                        }