Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_d3d_set_projection

(view raw script w/o annotations or w/e)
1
function d3d_set_projection(argument0, argument1, argument2, argument3, argument4, argument5, argument6, argument7, argument8) //gml_Script_d3d_set_projection
2
{
3
    var m = matrix_build_lookat(argument0, argument1, argument2, argument3, argument4, argument5, argument6, argument7, argument8)
4
    var cam = camera_get_active()
5
    camera_set_view_mat(cam, m)
6
    if (!global.__d3d)
7
    {
8
        var mproj = matrix_build_projection_ortho(camera_get_view_width(cam), camera_get_view_height(cam), 1, 32000)
9
        camera_set_proj_mat(cam, mproj)
10
    }
11
    camera_apply(cam)
12
}