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
+9
View File
@@ -0,0 +1,9 @@
vec3 DecodeNormal(vec2 n)
{
n = n * 2.0 - 1.0;
vec3 ret = vec3(n.x, n.y, 1.0 - abs(n.x) - abs(n.y));
float t = max(-ret.z, 0.0);
ret.x += ret.x >= 0.0 ? -t : t;
ret.y += ret.y >= 0.0 ? -t : t;
return normalize(ret);
}