Deltarune (Chapter 5) script viewer

← back to main script listing

gml_GlobalScript_LayerAlpha

(view raw script w/o annotations or w/e)
1
function scr_layer_alpha_begin()
2
{
3
    if (event_number == 0)
4
    {
5
        with (obj_battleLayerHighlight)
6
        {
7
            shader_replace_simple_set_hook(33);
8
            shader_set_uniform_f(shader_get_uniform(shd_alpha, "alpha"), myalpha);
9
        }
10
    }
11
}
12
13
function scr_layer_alpha_end()
14
{
15
    if (shader_current() != -1)
16
        shader_replace_simple_reset_hook();
17
}