Function getMaterialAppearance