13 lines
166 B
GLSL
13 lines
166 B
GLSL
#version 330
|
|
|
|
uniform sampler2D tex;
|
|
|
|
in vec2 fragTexCoord;
|
|
|
|
void main() {
|
|
if (texture(tex, fragTexCoord).a < 1e-3)
|
|
discard;
|
|
// gl_FragDepth = gl.FragCoord.z;
|
|
}
|
|
|