Change colors problem

maybe using ‘needsupdate’ see here GLB Replace mesh material on traverse with MeshPhysicalMaterial results in black

mesh.material.needsUpdate = true;