16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-18 03:09:18 +02:00
This commit is contained in:
milek7
2018-07-11 12:36:49 +02:00
parent e53b4fba26
commit 59cea820b0
4 changed files with 107 additions and 0 deletions

10
shaders/shadowmap.frag Normal file
View File

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