1 |
function draw_sprite_ext_glow() |
2 |
{ |
3 |
var color = (argument_count > 9) ? argument[9] : c_white; |
4 |
var blend = (color != c_white) ? merge_color(argument[7], color, glow) : argument[7]; |
5 |
if (glow < 1) |
6 |
draw_sprite_ext(argument[0], argument[1], argument[2], argument[3], argument[4], argument[5], argument[6], blend, argument[8]); |
7 |
if (glow > 0) |
8 |
{ |
9 |
if (color == c_white) |
10 |
draw_set_blend_mode(bm_add); |
11 |
d3d_set_fog(true, color, 0, 1); |
12 |
draw_sprite_ext(argument[0], argument[1], argument[2], argument[3], argument[4], argument[5], argument[6], argument[7], glow); |
13 |
d3d_set_fog(false, c_black, 0, 0); |
14 |
if (color == c_white) |
15 |
draw_set_blend_mode(bm_normal); |
16 |
} |
17 |
} |