用Material贴图

ModelInstance instance;
Texture texture = new Texture(Gdx.files.internal("abc.jpg"));
Material material = new Material();
material.set(TextureAttribute.createDiffuse(texture));

Material mat = instance.materials.get(0);//获取预定义的Material
mat.clear();
mat.set(material);//设置新的Material

你可能感兴趣的:(用Material贴图)