We have user interface where we show shirt and trouser textures and based on selection of textures we need to update the avatar(glb) dynamically.
if user clicks on Shirt design we need to update the texture in the glb file
let myTop = scene.getMeshByName(“Wolf3D_Outfit_Top.001”);
myTop.material.albedoTexture = myTexture;
If user clicks on trouser design we need to update the texture in the glb file
let mybottom = scene.getMeshByName(“Wolf3D_Outfit_Bottom.001”);
mybottom.material.albedoTexture = myTexture1;
The following is the code snippet, Can somebody suggest how to apply this feature ?