Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_mail_whale_Draw_0

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