一个模型如何使用多个纹理? 我有一个obj模型包含房子和草, 我怎样才能为这个obj模型设置纹理和草纹理?
TextureManager tm = TextureManager.getInstance();
Texture houseTexture = new Texture(LoadAssets.bitmap1);
Texture grassTexture = new Texture(LoadAssets.bitmap2);
tm.addTexture("houseTexture", houseTexture);
tm.addTexture("grassTexture",grassTexture);
house=Object3D.mergeAll(Loader.loadOBJ(LoadAssets.loadf("houseMultiMaterial.obj"),LoadAssets.loadf("houseMultiMaterial.mtl"),2));