X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=dosdemo;a=blobdiff_plain;f=src%2Fmesh.c;h=0dc6bf6b54268f16728cab72d6900c335eabaeb5;hp=bde8266582351ab0faf95f5c35774e6264e89707;hb=32ff3cf2d7d7a5ae82f5ca400b320c67e6984ad6;hpb=b546d1a5227ee3a263447e279434842d230f700a diff --git a/src/mesh.c b/src/mesh.c index bde8266..0dc6bf6 100644 --- a/src/mesh.c +++ b/src/mesh.c @@ -394,6 +394,7 @@ int gen_torus_mesh(struct g3d_mesh *mesh, float rad, float ringrad, int usub, in int chess = (i & 1) == (j & 1); torusvec(&vptr->x, theta, phi, rad, ringrad); + vptr->w = 1.0f; vptr->nx = (vptr->x - rcent[0]) / ringrad; vptr->ny = (vptr->y - rcent[1]) / ringrad;