nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
52c94ae
)
gamnit: lower transparency threshold to discard fragments
author
Alexis Laferrière
<alexis.laf@xymus.net>
Sat, 15 Apr 2017 14:33:25 +0000
(10:33 -0400)
committer
Alexis 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
patch
|
blob
|
history
diff --git
a/lib/gamnit/flat.nit
b/lib/gamnit/flat.nit
index
6774f4f
..
cfd8150
100644
(file)
--- 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;
}