Working alpha

This commit is contained in:
Piotr 2020-09-24 20:39:24 +02:00
parent 8bfaaa5d56
commit 5c82231b95
1 changed files with 4 additions and 1 deletions

View File

@ -7,5 +7,8 @@ uniform sampler2D texture_diffuse1;
void main()
{
FragColor = texture(texture_diffuse1, TexCoords);
vec4 texColor = texture(texture_diffuse1, TexCoords);
if(texColor.a < 0.1)
discard;
FragColor = texColor;
}