- for(i=0; i<prim; i++) {
- if(i > 0) {
- xform(xv + i, varr + i, mat[mtop]);
- }
- xv[i].x = (xv[i].x << 1) / (xv[i].z >> 8); /* assume aspect: ~2 */
- xv[i].y = (xv[i].y << 2) / (xv[i].z >> 8); /* the shift is * PROJ_D */
- /* transform result is 24.8 */
+ /* transform the rest of the vertices to view space */
+ for(i=1; i<prim; i++) {
+ xform(xv + i, varr + i, mat[mtop]);