This *WILL* boost fps slightly. By as much as 50 perhaps.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1722 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
c9c24856b9
commit
2cd3740b2f
1 changed files with 2 additions and 0 deletions
|
@ -915,6 +915,7 @@ void GLR_BuildLightMap (msurface_t *surf, qbyte *dest, qbyte *deluxdest, stmap *
|
||||||
{
|
{
|
||||||
scale = d_lightstylevalue[surf->styles[maps]]/3;
|
scale = d_lightstylevalue[surf->styles[maps]]/3;
|
||||||
surf->cached_light[maps] = scale; // 8.8 fraction
|
surf->cached_light[maps] = scale; // 8.8 fraction
|
||||||
|
surf->cached_colour[maps] = cl_lightstyle[surf->styles[maps]].colour;
|
||||||
for (i=0 ; i<size ; i++)
|
for (i=0 ; i<size ; i++)
|
||||||
blocklights[i] += (lightmap[i*3]+lightmap[i*3+1]+lightmap[i*3+2]) * scale;
|
blocklights[i] += (lightmap[i*3]+lightmap[i*3+1]+lightmap[i*3+2]) * scale;
|
||||||
lightmap += size*3; // skip to next lightmap
|
lightmap += size*3; // skip to next lightmap
|
||||||
|
@ -926,6 +927,7 @@ void GLR_BuildLightMap (msurface_t *surf, qbyte *dest, qbyte *deluxdest, stmap *
|
||||||
{
|
{
|
||||||
scale = d_lightstylevalue[surf->styles[maps]];
|
scale = d_lightstylevalue[surf->styles[maps]];
|
||||||
surf->cached_light[maps] = scale; // 8.8 fraction
|
surf->cached_light[maps] = scale; // 8.8 fraction
|
||||||
|
surf->cached_colour[maps] = cl_lightstyle[surf->styles[maps]].colour;
|
||||||
for (i=0 ; i<size ; i++)
|
for (i=0 ; i<size ; i++)
|
||||||
blocklights[i] += lightmap[i] * scale;
|
blocklights[i] += lightmap[i] * scale;
|
||||||
lightmap += size; // skip to next lightmap
|
lightmap += size; // skip to next lightmap
|
||||||
|
|
Loading…
Reference in a new issue