min-clamp ambientcolor instead of shadecolor. should make for more visible

players
This commit is contained in:
Bill Currie 2002-09-09 23:06:08 +00:00
parent bbcd6caef5
commit f6ab24e6bc

View file

@ -559,12 +559,12 @@ R_DrawAliasModel (entity_t *e)
shadecolor[i] = 1 - ambientcolor[i]; shadecolor[i] = 1 - ambientcolor[i];
} }
// always give the gun some light // always give the gun some light
shade = max (shadecolor[0], max (shadecolor[1], shadecolor[2])); shade = max (ambientcolor[0], max (ambientcolor[1], ambientcolor[2]));
minshade = model->min_light; minshade = model->min_light;
if (shade < minshade) { if (shade < minshade) {
shadecolor[0] += minshade - shade; ambientcolor[0] += minshade - shade;
shadecolor[1] += minshade - shade; ambientcolor[1] += minshade - shade;
shadecolor[2] += minshade - shade; ambientcolor[2] += minshade - shade;
} }
an = e->angles[1] * (M_PI / 180.0); an = e->angles[1] * (M_PI / 180.0);