From: Alexis Laferrière Date: Sat, 15 Apr 2017 14:33:25 +0000 (-0400) Subject: gamnit: lower transparency threshold to discard fragments X-Git-Url: http://nitlanguage.org gamnit: lower transparency threshold to discard fragments Signed-off-by: Alexis Laferrière --- 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; }