SuperTuxKart 1.5 upstream source (from official release tarball)

This commit is contained in:
Benjamin
2026-06-11 20:04:02 +02:00
commit 2957e51aaa
8551 changed files with 1801800 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
uniform sampler2D tex;
uniform float zn;
uniform float zf;
out float Depth;
void main()
{
vec2 uv = gl_FragCoord.xy / u_screen;
float d = texture(tex, uv).x;
float c0 = zn * zf, c1 = zn - zf, c2 = zf;
Depth = c0 / (d * c1 + c2);
}