blob: 90519e34f52d09adfe5591d516f5c0648e31b75c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#version 330 core
#extension GL_ARB_shading_language_420pack : enable
layout(binding = 3) uniform sampler2D texture0;
in vec2 texCoord;
void
main()
{
if (texture(texture0, texCoord).a < 0.5) {
discard;
}
gl_FragDepth = gl_FragCoord.z;
}
|