I have added a png image on texture using the below code, :
// Create a material with the image texture
var planeMaterial = new BABYLON.StandardMaterial("imageMaterial", scene);
planeMaterial.diffuseTexture = new BABYLON.Texture("products/tshirt1.png", scene);
plane.material = planeMaterial;
(await scene).getMaterialByName("imageMaterial").emissiveTexture = new BABYLON.Texture("products/tshirt1.png")
It should come like this:
But it is coming like this:
What is needed to be done in my code ?