mirror of
https://github.com/nzp-team/glquake.git
synced 2025-02-14 16:01:25 +00:00
Actually increase light color of models
This commit is contained in:
parent
558419cd04
commit
4dba825678
1 changed files with 8 additions and 10 deletions
|
@ -678,16 +678,6 @@ void R_DrawAliasModel (entity_t *e)
|
||||||
VectorCopy (currententity->origin, r_entorigin);
|
VectorCopy (currententity->origin, r_entorigin);
|
||||||
VectorSubtract (r_origin, r_entorigin, modelorg);
|
VectorSubtract (r_origin, r_entorigin, modelorg);
|
||||||
|
|
||||||
|
|
||||||
//Shpuld
|
|
||||||
if(r_model_brightness.value)
|
|
||||||
{
|
|
||||||
lightcolor[0] += 32;
|
|
||||||
lightcolor[1] += 32;
|
|
||||||
lightcolor[2] += 32;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
for(int g = 0; g < 3; g++)
|
for(int g = 0; g < 3; g++)
|
||||||
{
|
{
|
||||||
if(lightcolor[g] < 8)
|
if(lightcolor[g] < 8)
|
||||||
|
@ -762,6 +752,14 @@ void R_DrawAliasModel (entity_t *e)
|
||||||
|
|
||||||
GL_DisableMultitexture();
|
GL_DisableMultitexture();
|
||||||
|
|
||||||
|
//Shpuld
|
||||||
|
if(r_model_brightness.value)
|
||||||
|
{
|
||||||
|
lightcolor[0] += 32;
|
||||||
|
lightcolor[1] += 32;
|
||||||
|
lightcolor[2] += 32;
|
||||||
|
}
|
||||||
|
|
||||||
glPushMatrix ();
|
glPushMatrix ();
|
||||||
R_RotateForEntity (e);
|
R_RotateForEntity (e);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue