Fix the shineyness, so it actually fully matches q3.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1396 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2005-09-29 23:28:53 +00:00
parent fe6158f8a9
commit bcc1f2c081

View file

@ -1074,12 +1074,16 @@ void RB_CalcEnvironmentTexCoords( float *st )
vec3_t viewer, reflected;
float d;
vec3_t rorg;
v = vertexArray[0];
normal = normalsArray[0];
RotateLightVector(currententity->axis, currententity->origin, r_origin, rorg);
for (i = 0 ; i < numVerts ; i++, v += 3, normal += 3, st += 2 )
{
VectorSubtract (r_origin, v, viewer);
VectorSubtract (rorg, v, viewer);
VectorNormalizeFast (viewer);
d = DotProduct (normal, viewer);