This commit is contained in:
aap
2026-08-09 14:49:11 +02:00
parent 1c1bcf0610
commit c1a826b13b
+2 -1
View File
@@ -66,7 +66,8 @@ CreateKnotGeometry(void)
V3d ring = add(scale(n, cosf(a)), scale(b, sinf(a))); V3d ring = add(scale(n, cosf(a)), scale(b, sinf(a)));
verts[v] = add(c, scale(ring, tuberad)); verts[v] = add(c, scale(ring, tuberad));
norms[v] = ring; norms[v] = ring;
uv[v].u = (float)i/SEGS*24.0f; // keep u*texwidth below the ~1024 texel GS limit
uv[v].u = (float)i/SEGS*6.0f;
uv[v].v = (float)j/SIDES; uv[v].v = (float)j/SIDES;
v++; v++;
} }