Hello, I introduced a model from outside and added a network linked texture to it. When I did not declare a material, the model can be displayed. However, after I gave the model a material, it will not be displayed. I need your help
The code is as follows:
BABYLON.SceneLoader.ImportMesh('', "https://hyhh-fs.oss-cn-beijing.aliyuncs.com/model/", "ea4f4e7f0a2d48e18b22b1b0cff68b66.glb", scene, (meshes) => {
meshes.forEach((mesh) => {
var stdMaterial = new BABYLON.StandardMaterial("stdMaterial", scene);
stdMaterial.diffuseTexture = new BABYLON.Texture("https://hyhh-fs.oss-cn-beijing.aliyuncs.com/model/67841f1c783b4826bc23313689412b77.png", scene, false, false)
stdMaterial.diffuseColor = new BABYLON.Color3(1, 1, 1);
mesh.material = stdMaterial
});
engine.runRenderLoop(() => {
scene.render();
});
}, undefined, (error) => {
});