Hello. I have this Seat.gltf model in my scene that I exported it from 3ds Max. Anyways, how do I change the diffuse texture on it? The seat imports with a black texture (SeatBlack_baseColorTexture.png). I'd like to change it to this (SeatLime_baseColorTexture.png). My goal eventually is to let the user pick from a variety of seat colors. Any pointers in the right direction would be appreciated. Thanks.
var mySeat = BABYLON.SceneLoader.Append("./models/", "Seat.gltf", scene, function (scene) {
}, null, function (scene) {
var LimeTexture = new BABYLON.PBRMaterial("", scene);
LimeTexture.baseColorTexture = new BABYLON.Texture("models/SeatLime_baseColorTexture.png", scene);
mySeat.material = LimeTexture;
});