Implemented the MeshRegistry, but drawing different meshes does not work as expected.