mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-20 01:11:18 +00:00
min-clamp ambientcolor instead of shadecolor. should make for more visible
players
This commit is contained in:
parent
bbcd6caef5
commit
f6ab24e6bc
1 changed files with 4 additions and 4 deletions
|
@ -559,12 +559,12 @@ R_DrawAliasModel (entity_t *e)
|
|||
shadecolor[i] = 1 - ambientcolor[i];
|
||||
}
|
||||
// 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;
|
||||
if (shade < minshade) {
|
||||
shadecolor[0] += minshade - shade;
|
||||
shadecolor[1] += minshade - shade;
|
||||
shadecolor[2] += minshade - shade;
|
||||
ambientcolor[0] += minshade - shade;
|
||||
ambientcolor[1] += minshade - shade;
|
||||
ambientcolor[2] += minshade - shade;
|
||||
}
|
||||
|
||||
an = e->angles[1] * (M_PI / 180.0);
|
||||
|
|
Loading…
Reference in a new issue