soft: use same full light as gl* version if none

Use fullbright if not lights provided, same logic used by default
for gl renders and way to show something for ReRelease version
while real support is not implemented yet.
This commit is contained in:
Denis Pauk 2023-08-25 14:34:58 +03:00
parent 3b82261dec
commit 3ffe9f522e

View file

@ -450,6 +450,29 @@ R_BuildLightMap (drawsurf_t* drawsurf)
}
}
}
else
{
int maps;
for (maps = 0 ; maps < MAXLIGHTMAPS && surf->styles[maps] != 255 ;
maps++)
{
unsigned scale;
light_t *curr_light, *max_light;
curr_light = blocklights;
max_light = blocklights + size;
scale = drawsurf->lightadj[maps]; // 8.8 fraction
do
{
*curr_light += 255 * scale;
curr_light++;
}
while(curr_light < max_light);
}
}
// add all the dynamic lights
if (surf->dlightframe == r_framecount)