diff --git a/res/shaders/imesh_tex.frag b/res/shaders/imesh_tex.frag index 79adcecc..a6514f0b 100644 --- a/res/shaders/imesh_tex.frag +++ b/res/shaders/imesh_tex.frag @@ -9,5 +9,7 @@ uniform sampler2D texture; varying vec2 fragTex; void main() { - gl_FragColor = texture2D(texture, fragTex) * color; + vec4 texColor = texture2D(texture, fragTex); + if(texColor.a == 0.0) discard; + gl_FragColor = texColor * color; }