summaryrefslogtreecommitdiff
path: root/gfx/gl/shaders/shadowStencil.fs
blob: f149c238092b090ca244a7dedf4a3246c0a1017d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#version 330 core
#extension GL_ARB_shading_language_420pack : enable

layout(binding = 0) uniform sampler2D textureAlbedo;

include(`materialInterface.glsl')
include(`materialCommon.glsl')

void
main()
{
	if (getTextureColour(Material, TexCoords).a < 0.5) {
		discard;
	}
	gl_FragDepth = gl_FragCoord.z;
}