Draw pixels for the entire fire_alpha array
Makes fire glow look slightly less blocky
This commit is contained in:
parent
3042b53e11
commit
9001508623
@ -3170,8 +3170,8 @@ void render_fire(pixel *vid)
|
|||||||
g = fire_g[j][i];
|
g = fire_g[j][i];
|
||||||
b = fire_b[j][i];
|
b = fire_b[j][i];
|
||||||
if (r || g || b)
|
if (r || g || b)
|
||||||
for (y=-CELL+1; y<2*CELL; y++)
|
for (y=-CELL; y<2*CELL; y++)
|
||||||
for (x=-CELL+1; x<2*CELL; x++)
|
for (x=-CELL; x<2*CELL; x++)
|
||||||
addpixel(vid, i*CELL+x, j*CELL+y, r, g, b, fire_alpha[y+CELL][x+CELL]);
|
addpixel(vid, i*CELL+x, j*CELL+y, r, g, b, fire_alpha[y+CELL][x+CELL]);
|
||||||
r *= 8;
|
r *= 8;
|
||||||
g *= 8;
|
g *= 8;
|
||||||
|
Loading…
Reference in New Issue
Block a user