Files
maszyna/shaders/shadowmap.frag
2018-07-11 19:44:36 +02:00

13 lines
215 B
GLSL

#version 330
in vec2 f_coord;
//uniform sampler2D tex;
void main()
{
//gl_FragColor = texture(tex, f_coord);
gl_FragDepth = gl_FragCoord.z;
//gl_FragDepth = gl_FragCoord.z + (1.0 - texture(tex, f_coord).w);
}