mirror of https://github.com/Leinnan/doppler.git
Working alpha
This commit is contained in:
parent
8bfaaa5d56
commit
5c82231b95
|
|
@ -7,5 +7,8 @@ uniform sampler2D texture_diffuse1;
|
||||||
|
|
||||||
void main()
|
void main()
|
||||||
{
|
{
|
||||||
FragColor = texture(texture_diffuse1, TexCoords);
|
vec4 texColor = texture(texture_diffuse1, TexCoords);
|
||||||
|
if(texColor.a < 0.1)
|
||||||
|
discard;
|
||||||
|
FragColor = texColor;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue