mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-02-17 01:21:12 +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
|
do
|
||||||
{
|
{
|
||||||
light_t light = (
|
light_t light;
|
||||||
lightmap[0] + lightmap[1] + lightmap[2]
|
|
||||||
) / 3 * scale;
|
light = lightmap[0];
|
||||||
|
if (light < lightmap[1])
|
||||||
|
light = lightmap[1];
|
||||||
|
if (light < lightmap[2])
|
||||||
|
light = lightmap[2];
|
||||||
|
|
||||||
|
light *= scale;
|
||||||
|
|
||||||
*curr_light += light;
|
*curr_light += light;
|
||||||
curr_light++;
|
curr_light++;
|
||||||
*curr_light += light;
|
*curr_light += light;
|
||||||
|
|
Loading…
Reference in a new issue