From: havoc Date: Sat, 8 Dec 2007 07:32:19 +0000 (+0000) Subject: made r_shownormals value control the length of the vectors shown, rather X-Git-Tag: xonotic-v0.1.0preview~2712 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=11189ad49c9cc293c71b6126681ea50f4fc96573;p=xonotic%2Fdarkplaces.git made r_shownormals value control the length of the vectors shown, rather than opacity, this also reduces the length by 8x compared to the previous code git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7778 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/gl_rmain.c b/gl_rmain.c index b453e259..f75c34b6 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -6211,13 +6211,13 @@ void R_DrawDebugModel(entity_render_t *ent) } if (r_shownormals.value > 0) { - GL_Color(r_view.colorscale, 0, 0, r_shownormals.value); + 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); qglVertex3f(v[0], v[1], v[2]); - VectorMA(v, 8, rsurface.svector3f + l * 3, v); + VectorMA(v, r_shownormals.value, rsurface.svector3f + l * 3, v); qglVertex3f(v[0], v[1], v[2]); } qglEnd(); @@ -6228,7 +6228,7 @@ void R_DrawDebugModel(entity_render_t *ent) { VectorCopy(rsurface.vertex3f + l * 3, v); qglVertex3f(v[0], v[1], v[2]); - VectorMA(v, 8, rsurface.tvector3f + l * 3, v); + VectorMA(v, r_shownormals.value, rsurface.tvector3f + l * 3, v); qglVertex3f(v[0], v[1], v[2]); } qglEnd(); @@ -6239,7 +6239,7 @@ void R_DrawDebugModel(entity_render_t *ent) { VectorCopy(rsurface.vertex3f + l * 3, v); qglVertex3f(v[0], v[1], v[2]); - VectorMA(v, 8, rsurface.normal3f + l * 3, v); + VectorMA(v, r_shownormals.value, rsurface.normal3f + l * 3, v); qglVertex3f(v[0], v[1], v[2]); } qglEnd();