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