var cam = camera_get_active(); global.projMat = camera_get_proj_mat(cam); global.viewMat = camera_get_view_mat(cam); setCam(); var i, j, k; for (i=0; i