]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix the odd distortion on beam polygons that tends to make their end kind of vanish...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 15 Jan 2005 01:53:55 +0000 (01:53 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 15 Jan 2005 01:53:55 +0000 (01:53 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4934 d7cf8633-e32d-0410-b094-e92efae38249

gl_rmain.c

index 285b82804ef5b54f29456ccb0d13a12fa59e023e..b127b381bcb2b98a610117209af6417bfd85c865 100644 (file)
@@ -1024,17 +1024,16 @@ void R_CalcBeam_Vertex3f (float *vert, const vec3_t org1, const vec3_t org2, flo
        vec3_t right1, right2, diff, normal;
 
        VectorSubtract (org2, org1, normal);
-       VectorNormalizeFast (normal);
 
        // calculate 'right' vector for start
        VectorSubtract (r_vieworigin, org1, diff);
-       VectorNormalizeFast (diff);
        CrossProduct (normal, diff, right1);
+       VectorNormalize (right1);
 
        // calculate 'right' vector for end
        VectorSubtract (r_vieworigin, org2, diff);
-       VectorNormalizeFast (diff);
        CrossProduct (normal, diff, right2);
+       VectorNormalize (right2);
 
        vert[ 0] = org1[0] + width * right1[0];
        vert[ 1] = org1[1] + width * right1[1];