sorting out materials and textures