+
#include "quakedef.h"
-// LordHavoc: disabled lerping
#define LERPSPRITES
#ifdef LERPSPRITES
VectorNegate(vpn, matrix3[0]);
matrix3[0][2] = 0;
VectorNormalizeFast(matrix3[0]);
- //VectorVectors(matrix3[0], matrix3[1], matrix3[2]);
- //VectorNegate(matrix3[1], matrix3[1]);
matrix3[1][0] = matrix3[0][1];
matrix3[1][1] = -matrix3[0][0];
matrix3[1][2] = 0;
VectorSubtract(currentrenderentity->origin, r_origin, matrix3[0]);
matrix3[0][2] = 0;
VectorNormalizeFast(matrix3[0]);
- //VectorVectors(matrix3[0], matrix3[1], matrix3[2]);
matrix3[1][0] = matrix3[0][1];
matrix3[1][1] = -matrix3[0][0];
matrix3[1][2] = 0;
VectorCopy(vpn, matrix2[0]);
VectorNegate(vright, matrix2[1]);
VectorCopy(vup, matrix2[2]);
- R_ConcatRotations (matrix1, matrix2, matrix3);
+ R_ConcatRotations (matrix1[0], matrix2[0], matrix3[0]);
break;
}
- // don't draw if view origin is behind it
- //if (DotProduct(org, matrix3[0]) < (DotProduct(r_origin, matrix3[0]) - 1.0f))
- // return true;
-
if (currentrenderentity->scale != 1)
{
VectorScale(matrix3[1], currentrenderentity->scale, left);
GL_DrawSpriteImage(true, frame, R_GetTexture(frame->fogtexture), org, up, left, fogcolor[0],fogcolor[1],fogcolor[2], fog * currentrenderentity->alpha);
#endif
}
+