From 59d033f3d434e0f853ad5f7583977aa8a464b322 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Mon, 14 May 2001 06:54:14 +0000 Subject: [PATCH] fix the black alias models --- nq/source/gl_rmain.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/nq/source/gl_rmain.c b/nq/source/gl_rmain.c index 993374f85..1d156dc85 100644 --- a/nq/source/gl_rmain.c +++ b/nq/source/gl_rmain.c @@ -618,6 +618,17 @@ R_DrawAliasModel (entity_t *e) if (R_CullBox (mins, maxs)) return; + // FIXME: shadecolor is supposed to be the lighting for the model, not + // just colormod + shadecolor[0] = 255;//currententity->colormod[0]; + shadecolor[1] = 255;//currententity->colormod[1]; + shadecolor[2] = 255;//currententity->colormod[2]; + if (!lighthalf) { + shadecolor[0] *= 2.0; + shadecolor[1] *= 2.0; + shadecolor[2] *= 2.0; + } + VectorCopy (currententity->origin, r_entorigin); VectorSubtract (r_origin, r_entorigin, modelorg);