1 |
draw_set_alpha(mail_whale_shadow_alpha); |
2 |
draw_sprite(spr_npc_shadow, 0, x, mail_whale_y_target + 30); |
3 |
draw_set_alpha(1); |
4 |
draw_self(); |
5 |
if (shader_on && sprite_index == spr_mail_whale_basket_clover_yellow) |
6 |
{ |
7 |
shader_set(sh_palette_swap); |
8 |
shader_set_uniform_f(u_palette_index, palette_index); |
9 |
shader_set_uniform_f(u_palette_texel_height, uniform_info[0]); |
10 |
shader_set_uniform_f(u_palette_texel_width, uniform_info[1]); |
11 |
shader_set_uniform_f(u_palette_x_offset, uniform_info[2]); |
12 |
shader_set_uniform_f(u_palette_y_offset, uniform_info[3]); |
13 |
shader_set_uniform_i(u_color_vect, uniform_info[4]); |
14 |
texture_set_stage(u_palette_tex, palette_sampler); |
15 |
draw_sprite_ext(spr_mail_whale_basket_only_clover, image_index, x, y, image_xscale, image_yscale, image_angle, image_blend, image_alpha); |
16 |
shader_reset(); |
17 |
} |
18 |
else if (shader_on == false && sprite_index == spr_mail_whale_basket_clover_yellow) |
19 |
{ |
20 |
draw_sprite_ext(spr_mail_whale_basket_only_clover, image_index, x, y, image_xscale, image_yscale, image_angle, image_blend, image_alpha); |
21 |
} |