提交 8a8aefcc 编写于 作者: W WestLangley

Geometry => BufferGeometry

上级 b9470472
......@@ -73,7 +73,7 @@
} );
var geometry = new THREE.Geometry();
var points = [];
for ( var i = 0; i < 100; i ++ ) {
......@@ -86,12 +86,14 @@
particle.scale.x = particle.scale.y = 10;
scene.add( particle );
geometry.vertices.push( particle.position );
points.push( particle.position );
}
// lines
var geometry = new THREE.BufferGeometry().setFromPoints( points );
var line = new THREE.Line( geometry, new THREE.LineBasicMaterial( { color: 0xffffff, opacity: 0.5 } ) );
scene.add( line );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册