mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-02-01 05:30:58 +00:00
soft: speedup apply grey light to wall
This commit is contained in:
parent
e1d5bad4db
commit
96a78c41c8
1 changed files with 10 additions and 3 deletions
|
@ -119,11 +119,18 @@ R_DrawSurfaceBlock8_anymip (int level, int surfrowbytes)
|
|||
int light_masked = R_GreyscaledLight(lightright);
|
||||
if (light_masked != LIGHTMASK && R_GreyscaledLight(lightleft) == light_masked )
|
||||
{
|
||||
int b;
|
||||
pixel_t *dest, *dest_max, *src;
|
||||
|
||||
for (b=(size-1); b>=0; b--)
|
||||
dest = prowdest;
|
||||
dest_max = prowdest + size;
|
||||
src = psource;
|
||||
|
||||
while (dest < dest_max)
|
||||
{
|
||||
prowdest[b] = vid_colormap[psource[b] + light_masked];
|
||||
*dest = vid_colormap[*src + light_masked];
|
||||
|
||||
dest++;
|
||||
src++;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue