update material and textures