Oh my god, rust is so good

This commit is contained in:
Thomas Forgione
2018-04-12 17:23:40 +02:00
parent b42abd0325
commit 83065cedf2
4 changed files with 251 additions and 7 deletions
+5
View File
@@ -18,5 +18,10 @@ void main() {
vec4 factor = vec4(ambientLight + lambertComponent, 1.0);
color = factor * texture(tex, v_tex_coords);
if (color.a < 0.5) {
discard;
}
}