mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
fix the unlit models in full light bug
This commit is contained in:
parent
a69b172f6f
commit
7e4e294089
1 changed files with 2 additions and 2 deletions
|
@ -389,14 +389,14 @@ loop:
|
||||||
lightmap = surf->samples;
|
lightmap = surf->samples;
|
||||||
r = 0;
|
r = 0;
|
||||||
if (lightmap) {
|
if (lightmap) {
|
||||||
lightmap += dt * ((surf->extents[0] >> 4) + 1) + ds;
|
lightmap += (dt * ((surf->extents[0] >> 4) + 1) + ds) * mod_lightmap_bytes;
|
||||||
|
|
||||||
for (maps = 0; maps < MAXLIGHTMAPS && surf->styles[maps] != 255;
|
for (maps = 0; maps < MAXLIGHTMAPS && surf->styles[maps] != 255;
|
||||||
maps++) {
|
maps++) {
|
||||||
scale = d_lightstylevalue[surf->styles[maps]];
|
scale = d_lightstylevalue[surf->styles[maps]];
|
||||||
r += *lightmap * scale;
|
r += *lightmap * scale;
|
||||||
lightmap += ((surf->extents[0] >> 4) + 1) *
|
lightmap += ((surf->extents[0] >> 4) + 1) *
|
||||||
((surf->extents[1] >> 4) + 1);
|
((surf->extents[1] >> 4) + 1) * mod_lightmap_bytes;
|
||||||
}
|
}
|
||||||
|
|
||||||
r >>= 8;
|
r >>= 8;
|
||||||
|
|
Loading…
Reference in a new issue