无法将needsUpdate设置为true

时间:2019-06-19 09:15:00

标签: node.js three.js

在修改现有的Texture后,我试图将needsUpdate设置为true

我尝试将needsUpdate设置为true

var meshes = this.sceneObject3D.children;

    meshes.map((mesh) => {
      if(mesh.material.map) {
        mesh.material.map.needsUpdate = true;
      }
    })

在分配后,needUpdate的值仍然未定义

0 个答案:

没有答案