Fix for wandering point on polyblended cones. Should now always point directly at viewers eye, rather than perpendicular to the view plane...

(thanks Taniwha)
This commit is contained in:
Ragnvald Maartmann-Moe IV 2001-02-16 00:09:49 +00:00
parent d81eb19c1f
commit d3e280a088

View file

@ -132,8 +132,11 @@ R_RenderDlight (dlight_t *light)
else else
glColor3fv (light->color); glColor3fv (light->color);
VectorSubtract (r_origin, light->origin, v);
VectorNormalize (v);
for (i = 0; i < 3; i++) for (i = 0; i < 3; i++)
v[i] = light->origin[i] - vpn[i] * rad; v[i] = light->origin[i] + v[i] * rad;
glVertex3fv (v); glVertex3fv (v);
glColor3f (0, 0, 0); glColor3f (0, 0, 0);