mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
go back to the `long way' for the cross product as qfvis was no longer
getting the same results as vis (that may be acceptable, but not yet:)
This commit is contained in:
parent
d25ee82838
commit
2a56b8f15f
1 changed files with 3 additions and 1 deletions
|
@ -107,7 +107,9 @@ ClipToSeparators (winding_t *source, winding_t *pass, winding_t *target,
|
|||
for (j = 0; j < pass->numpoints; j++) {
|
||||
VectorSubtract (pass->points[j], source->points[i], v2);
|
||||
|
||||
CrossProduct (v1, v2, plane.normal);
|
||||
plane.normal[0] = v1[1] * v2[2] - v1[2] * v2[1];
|
||||
plane.normal[1] = v1[2] * v2[0] - v1[0] * v2[2];
|
||||
plane.normal[2] = v1[0] * v2[1] - v1[1] * v2[0];
|
||||
|
||||
length = DotProduct (plane.normal, plane.normal);
|
||||
|
||||
|
|
Loading…
Reference in a new issue