vright[2] = normal[1];
break;
}
- CrossProduct(normal, vright, vup);
-
- // IMPORTANT NOTE: vright and vup are NOT unit vectors at this point.
- // However, normal, vup, and vright are pairwise perpendicular.
-
- VectorSetLength(vup, MAX_WORLD_COORD * 2, vup);
+ // NOTE: vright is NOT a unit vector at this point.
VectorSetLength(vright, MAX_WORLD_COORD * 2, vright);
+ CrossProduct(normal, vright, vup);
VectorScale(normal, dist, org);
w = AllocWinding(4);