gl01/internal/asset/shader/world/shadowmap.frag

13 lines
166 B
GLSL
Raw Permalink Normal View History

2022-01-20 21:58:50 +08:00
#version 330
2022-02-25 21:10:38 +08:00
uniform sampler2D tex;
in vec2 fragTexCoord;
2022-01-20 21:58:50 +08:00
void main() {
2022-02-25 21:10:38 +08:00
if (texture(tex, fragTexCoord).a < 1e-3)
discard;
2022-01-20 21:58:50 +08:00
// gl_FragDepth = gl.FragCoord.z;
}