mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-02-01 05:30:58 +00:00
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:
parent
3b82261dec
commit
3ffe9f522e
1 changed files with 23 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue