This commit is contained in:
2026-11-03 20:05:02 -05:00
parent 7b32ad674e
commit 95c79efe83
38 changed files with 1636 additions and 2561 deletions
+2 -1
View File
@@ -29,7 +29,8 @@ vec2 SurfaceUV()
{
if (uvMode == 0) return aTex + uvOffset;
vec3 n = abs(aNormal);
// Unscale the normal first, so a stretched mesh picks the axis it faces in the world
vec3 n = abs(aNormal / max(tileScale, vec3(1e-4)));
vec3 p = aPos * tileScale;
if (n.y >= n.x && n.y >= n.z) return p.xz + uvOffset;
if (n.x >= n.z) return p.zy + uvOffset;