Updated code to use global containers instead of single global variables for meshes, mesh instances, and cameras.