use _draw function then get the viewport(you can add another viewport to screen) and call get_render_target_texture() to get texture .