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