Rendering code changed to allow generation of level meshes.