quick (and dirty) implementation of submeshes and materials