From 516a69b33da19a9d3abc54fc18ca620735eeddb8 Mon Sep 17 00:00:00 2001 From: havoc Date: Sat, 8 Dec 2007 08:04:26 +0000 Subject: [PATCH] color r_shownromals white at the tips git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7779 d7cf8633-e32d-0410-b094-e92efae38249 --- gl_rmain.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/gl_rmain.c b/gl_rmain.c index f75c34b6..af264cf1 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -6211,35 +6211,38 @@ void R_DrawDebugModel(entity_render_t *ent) } if (r_shownormals.value > 0) { - GL_Color(r_view.colorscale, 0, 0, 1); qglBegin(GL_LINES); for (k = 0, l = surface->num_firstvertex;k < surface->num_vertices;k++, l++) { VectorCopy(rsurface.vertex3f + l * 3, v); + GL_Color(r_view.colorscale, 0, 0, 1); qglVertex3f(v[0], v[1], v[2]); VectorMA(v, r_shownormals.value, rsurface.svector3f + l * 3, v); + GL_Color(r_view.colorscale, 1, 1, 1); qglVertex3f(v[0], v[1], v[2]); } qglEnd(); CHECKGLERROR - GL_Color(0, 0, r_view.colorscale, r_shownormals.value); qglBegin(GL_LINES); for (k = 0, l = surface->num_firstvertex;k < surface->num_vertices;k++, l++) { VectorCopy(rsurface.vertex3f + l * 3, v); + GL_Color(0, r_view.colorscale, 0, 1); qglVertex3f(v[0], v[1], v[2]); VectorMA(v, r_shownormals.value, rsurface.tvector3f + l * 3, v); + GL_Color(r_view.colorscale, 1, 1, 1); qglVertex3f(v[0], v[1], v[2]); } qglEnd(); CHECKGLERROR - GL_Color(0, r_view.colorscale, 0, r_shownormals.value); qglBegin(GL_LINES); for (k = 0, l = surface->num_firstvertex;k < surface->num_vertices;k++, l++) { VectorCopy(rsurface.vertex3f + l * 3, v); + GL_Color(0, 0, r_view.colorscale, 1); qglVertex3f(v[0], v[1], v[2]); VectorMA(v, r_shownormals.value, rsurface.normal3f + l * 3, v); + GL_Color(r_view.colorscale, 1, 1, 1); qglVertex3f(v[0], v[1], v[2]); } qglEnd(); -- 2.39.2