From: havoc Date: Sat, 15 Jan 2005 01:53:55 +0000 (+0000) Subject: fix the odd distortion on beam polygons that tends to make their end kind of vanish... X-Git-Tag: xonotic-v0.1.0preview~5215 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=55f7e1df465e1c0f1daf167eadefda655acfc9db;p=xonotic%2Fdarkplaces.git fix the odd distortion on beam polygons that tends to make their end kind of vanish to a point git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4934 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/gl_rmain.c b/gl_rmain.c index 285b8280..b127b381 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -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];