function scr_shoujo_setup() { u_time = shader_get_uniform(shd_shoujo, "time"); u_appsurfwidth = shader_get_uniform(shd_shoujo, "appSurfWidth"); u_texgradient = shader_get_sampler_index(shd_shoujo, "texGradient"); u_texbubble = shader_get_sampler_index(shd_shoujo, "texBubble"); u_texstars = shader_get_sampler_index(shd_shoujo, "texStars"); tex_bubl = sprite_get_texture(spr_bubl, 0); tex_grad = sprite_get_texture(spr_shoujogradient, 0); tex_star = sprite_get_texture(spr_stars_2, 0); } function scr_shoujo_draw_on(arg0) { shader_replace_simple_set_hook(55); shader_set_uniform_f(u_time, arg0); shader_set_uniform_f(u_appsurfwidth, surface_get_width(application_surface)); texture_set_stage(u_texgradient, tex_grad); texture_set_stage(u_texbubble, tex_bubl); texture_set_stage(u_texstars, tex_star); } function scr_shoujo_draw_off() { shader_replace_simple_reset_hook(); }