mirror of
https://git.code.sf.net/p/quake/newtree
synced 2024-11-24 13:01:58 +00:00
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:
parent
d81eb19c1f
commit
d3e280a088
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue