three.js [83]点顶点更新不起作用

时间:2017-03-07 10:38:58

标签: javascript three.js

示例:https://plnkr.co/edit/GWSuAbmSGHv4o75WK2Rj?p=preview

更新几何体的顶点,没有任何反应。但是verticesNeedUpdate被设置为true。任何建议?非常感谢。

setTimeout(function(){
  console.log('update');
  starsGeometry.vertices.push( new THREE.Vector3(1,0,0));
  starsGeometry.verticesNeedUpdate = true;
},2000)

0 个答案:

没有答案