Made the classes Mesh and Particle instanced-rendering-compatible