Go to the source code of this file.
◆ BLOCK_SIZE
◆ BLOCK_FUNC()
Definition at line 3 of file block.h.
5 int lightleft[3], lightright[3];
6 int lightleftstep[3], lightrightstep[3];
7 int v, i, b, lightstep[3], light[3];
8 byte *psource, *prowdest;
30 lightstep[0] = (lightleft[0] - lightright[0]) >>
BLOCK_SHIFT;
31 lightstep[1] = (lightleft[1] - lightright[1]) >>
BLOCK_SHIFT;
32 lightstep[2] = (lightleft[2] - lightright[2]) >>
BLOCK_SHIFT;
34 light[0] = lightright[0];
35 light[1] = lightright[1];
36 light[2] = lightright[2];
42 light[0] += lightstep[0];
43 light[1] += lightstep[1];
44 light[2] += lightstep[2];
48 lightright[0] += lightrightstep[0];
49 lightright[1] += lightrightstep[1];
50 lightright[2] += lightrightstep[2];
51 lightleft[0] += lightleftstep[0];
52 lightleft[1] += lightleftstep[1];
53 lightleft[2] += lightleftstep[2];