mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
fix the black alias models
This commit is contained in:
parent
9064530d1d
commit
59d033f3d4
1 changed files with 11 additions and 0 deletions
|
@ -618,6 +618,17 @@ R_DrawAliasModel (entity_t *e)
|
||||||
if (R_CullBox (mins, maxs))
|
if (R_CullBox (mins, maxs))
|
||||||
return;
|
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);
|
VectorCopy (currententity->origin, r_entorigin);
|
||||||
VectorSubtract (r_origin, r_entorigin, modelorg);
|
VectorSubtract (r_origin, r_entorigin, modelorg);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue