Some commit

This commit is contained in:
2018-04-24 11:08:32 +02:00
parent 598365f913
commit 9349c45431
4 changed files with 41 additions and 15 deletions
+2 -1
View File
@@ -12,6 +12,7 @@ vec3 directionnalLight = normalize(vec3(10,5,7));
vec3 directionnalLightFactor = vec3(0.6,0.6,0.6);
void main() {
vec3 lambertComponent = dot(directionnalLight, v_normal) * directionnalLightFactor;
lambertComponent = max(vec3(0.0, 0.0, 0.0), lambertComponent);
@@ -19,7 +20,7 @@ void main() {
color = factor * texture(tex, v_tex_coords);
if (color.a < 0.5) {
if (color.a < 0.05) {
discard;
} else {
color.a = 1.0;