1
0
Fork 0
forked from fte/fteqw

Fix rgbgen topcolor and rgbgen bottomcolor

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1205 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2005-08-07 13:11:23 +00:00
parent 4cf65db4b7
commit 887d613984

View file

@ -1348,9 +1348,19 @@ void R_ModifyColor ( meshbuffer_t *mb, shaderpass_t *pass )
}
else
i = TOP_RANGE>>4;
rc = host_basepal[i<<4];
gc = host_basepal[i<<4];
bc = host_basepal[i<<4];
if (i > 8)
{
i<<=4;
}
else
{
i<<=4;
i+=15;
}
i*=3;
rc = host_basepal[i+0];
gc = host_basepal[i+1];
bc = host_basepal[i+2];
if (!gammaworks)
{
rc = gammatable[rc];
@ -1388,9 +1398,19 @@ void R_ModifyColor ( meshbuffer_t *mb, shaderpass_t *pass )
}
else
i = BOTTOM_RANGE>>4;
rc = host_basepal[i<<4];
gc = host_basepal[i<<4];
bc = host_basepal[i<<4];
if (i > 8)
{
i<<=4;
}
else
{
i<<=4;
i+=15;
}
i*=3;
rc = host_basepal[i+0];
gc = host_basepal[i+1];
bc = host_basepal[i+2];
if (!gammaworks)
{
rc = gammatable[rc];