mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-22 20:51:31 +00:00
soft: use max light in blocklights (colorlight=0)
This commit is contained in:
parent
3b825670ba
commit
a0da1717cc
1 changed files with 10 additions and 3 deletions
|
@ -450,9 +450,16 @@ R_BuildLightMap (drawsurf_t* drawsurf)
|
|||
{
|
||||
do
|
||||
{
|
||||
light_t light = (
|
||||
lightmap[0] + lightmap[1] + lightmap[2]
|
||||
) / 3 * scale;
|
||||
light_t light;
|
||||
|
||||
light = lightmap[0];
|
||||
if (light < lightmap[1])
|
||||
light = lightmap[1];
|
||||
if (light < lightmap[2])
|
||||
light = lightmap[2];
|
||||
|
||||
light *= scale;
|
||||
|
||||
*curr_light += light;
|
||||
curr_light++;
|
||||
*curr_light += light;
|
||||
|
|
Loading…
Reference in a new issue