BabylonJS / Babylon.js

Babylon.js is a powerful, beautiful, simple, and open game and rendering engine packed into a friendly JavaScript framework.
http://www.babylonjs.com
Apache License 2.0
22.76k stars 3.39k forks source link

Why is the texture the same after different mesh Settings? #15157

Closed qq378488249 closed 1 month ago

qq378488249 commented 1 month ago

Use Github issues ONLY for bugs validated on the forum first!

We have a really active forum to help answering questions (https://forum.babylonjs.com/)

Repro

Screenshots If applicable, add screenshots to help explain your problem. f2285202ba358611e1d5f7231b2b9235

Desktop (please complete the following information):

Additional context Add any other context about the problem here. meshName and img is params, this is my code,please help me

scene.meshes.forEach((mesh) => {
    if (mesh.material) {
        if (mesh.material.name === meshName) {
            mesh.material.albedoTexture = BABYLON.Texture.CreateFromBase64String(img, scene)
        }
    }
});
sebavan commented 1 month ago

@qq378488249 can you please use the forum sharing your repro there first ? we only use github once the issue has been validated there first. And most importantly, share a repro there :-)