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:
parent
fe6158f8a9
commit
bcc1f2c081
1 changed files with 5 additions and 1 deletions
|
@ -1074,12 +1074,16 @@ void RB_CalcEnvironmentTexCoords( float *st )
|
||||||
vec3_t viewer, reflected;
|
vec3_t viewer, reflected;
|
||||||
float d;
|
float d;
|
||||||
|
|
||||||
|
vec3_t rorg;
|
||||||
|
|
||||||
v = vertexArray[0];
|
v = vertexArray[0];
|
||||||
normal = normalsArray[0];
|
normal = normalsArray[0];
|
||||||
|
|
||||||
|
RotateLightVector(currententity->axis, currententity->origin, r_origin, rorg);
|
||||||
|
|
||||||
for (i = 0 ; i < numVerts ; i++, v += 3, normal += 3, st += 2 )
|
for (i = 0 ; i < numVerts ; i++, v += 3, normal += 3, st += 2 )
|
||||||
{
|
{
|
||||||
VectorSubtract (r_origin, v, viewer);
|
VectorSubtract (rorg, v, viewer);
|
||||||
VectorNormalizeFast (viewer);
|
VectorNormalizeFast (viewer);
|
||||||
|
|
||||||
d = DotProduct (normal, viewer);
|
d = DotProduct (normal, viewer);
|
||||||
|
|
Loading…
Reference in a new issue