From d3e280a088a7dfb6a16e51dab3cbc63f0d2472e1 Mon Sep 17 00:00:00 2001 From: Ragnvald Maartmann-Moe IV Date: Fri, 16 Feb 2001 00:09:49 +0000 Subject: [PATCH] Fix for wandering point on polyblended cones. Should now always point directly at viewers eye, rather than perpendicular to the view plane... (thanks Taniwha) --- source/gl_rlight.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/gl_rlight.c b/source/gl_rlight.c index 382ace2..372e276 100644 --- a/source/gl_rlight.c +++ b/source/gl_rlight.c @@ -132,8 +132,11 @@ R_RenderDlight (dlight_t *light) else glColor3fv (light->color); + VectorSubtract (r_origin, light->origin, v); + VectorNormalize (v); + for (i = 0; i < 3; i++) - v[i] = light->origin[i] - vpn[i] * rad; + v[i] = light->origin[i] + v[i] * rad; glVertex3fv (v); glColor3f (0, 0, 0);