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
+20
View File
@@ -0,0 +1,20 @@
uniform sampler2D tex;
uniform vec3 col;
out vec4 FragColor;
void main()
{
// Use quarter resolution
vec2 uv = 4. * gl_FragCoord.xy / u_screen;
vec4 res = texture(tex, uv);
// Keep the sun fully bright, but fade the sky
float mul = distance(res.xyz, col);
mul = step(mul, 0.02);
mul *= 0.97;
res = res * vec4(mul);
FragColor = res;
}