blob: 47ce9c0ffb41cf718bd3cba495ac6dd514eb4c52 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#version 330 core
#extension GL_ARB_shading_language_420pack : enable
layout(binding = 3) uniform sampler2D textureAlbedo;
include(`materialInterface.glsl')
include(`materialCommon.glsl')
in vec2 texCoord;
flat in MaterialDetail material;
void
main()
{
if (getTextureColour(material, texCoord).a < 0.5) {
discard;
}
gl_FragDepth = gl_FragCoord.z;
}
|