mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 14:42:13 +00:00
Performance boost by correctly batching lightmaps.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5637 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
fa62cd2678
commit
62f2a380e1
1 changed files with 1 additions and 0 deletions
|
@ -2916,6 +2916,7 @@ static void Mod_Batches_SplitLightmaps(model_t *mod, int lmmerge)
|
|||
{
|
||||
batch->lightmap[sty] = (surf->lightmaptexturenums[sty]>=0)?lmscale*(surf->lightmaptexturenums[sty]/lmmerge):surf->lightmaptexturenums[sty];
|
||||
batch->lmlightstyle[sty] = surf->styles[sty];
|
||||
batch->vtlightstyle[sty] = surf->vlstyles[sty];
|
||||
}
|
||||
|
||||
for (j = 1; j < batch->maxmeshes; j++)
|
||||
|
|
Loading…
Reference in a new issue