https://github.com/mrdoob/three.js/wiki/Migration-Guide#r110–r111
在r111新增加了下面的代码:
这就意味着,BufferAttribute
必须要有 index和 position 属性, 所以,代码要这么写:
this.geometry.addAttribute('charIndex', charIndicesBufferAttribute);
this.geometry.setIndex(new THREE.BufferAttribute( new Uint32Array([0]), 1));
this.geometry.setAttribute( 'position', new THREE.Float32BufferAttribute( [0,0,0], 3 ) );
this.geometry.setDrawRange(0, strlen);
this.mesh = new THREE.Points(this.geometry, this.material);
建议在迁移指南中指出。