From 55f7e1df465e1c0f1daf167eadefda655acfc9db Mon Sep 17 00:00:00 2001 From: havoc Date: Sat, 15 Jan 2005 01:53:55 +0000 Subject: [PATCH] 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 --- gl_rmain.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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]; -- 2.39.2