mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-18 03:09:18 +02:00
work
This commit is contained in:
10
shaders/shadowmap.frag
Normal file
10
shaders/shadowmap.frag
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user