Renderer.Screenshot

static void Screenshot(Vec3 from, Vec3 at, int width, int height, string filename)

   
Vec3 from Viewpoint location.
Vec3 at Direction the viewpoint is looking at.
int width Size of the screenshot horizontally, in pixels.
int height Size of the screenshot vertically, in pixels.
string filename Filename to write the screenshot to! Note this’ll be a .jpg regardless of what file extension you use right now.

Schedules a screenshot for the end of the frame! The view will be rendered from the given position at the given point, with a resolution the same size as the screen’s surface. It’ll be saved as a .jpg file at the filename provided.