2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2024-11-22 01:45:19 +01:00

ref: soft: fix misplaced lightmaps

This commit is contained in:
Alibek Omarov 2024-11-02 04:09:04 +03:00
parent 40c051fb6b
commit d3adcf3185

View File

@ -217,9 +217,7 @@ static void R_BuildLightMap( void )
for( i = 0, bl = blocklights; i < size; i++, bl += 1, lm++ )
{
bl[0] += lm->r * scale;
bl[1] += lm->g * scale;
bl[2] += lm->b * scale;
bl[0] += ( lm->r + lm->g + lm->b ) * scale;
}
}