更新 three.js material 而不隐藏对象

Update three.js material without hiding the object

有什么方法可以更新 three.js material 而不隐藏它所应用的对象。

我唯一想到的就是克隆对象和 material,使用 material.needsUpdate = true 更新克隆的 material 并将原始对象替换为克隆的对象。

有更好的解决方案吗?

好吧,我犯了一个愚蠢的错误。我更改了我的代码以使用 THREE.TextureLoader() 并预加载纹理。现在一切正常。