📜  在三个 js 中打点 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:17.660000             🧑  作者: Mango

代码示例1
var dotGeometry = new THREE.Geometry();
dotGeometry.vertices.push(new THREE.Vector3( 0, 0, 0));
var dotMaterial = new THREE.PointsMaterial( { size: 1, sizeAttenuation: false } );
var dot = new THREE.Points( dotGeometry, dotMaterial );
scene.add( dot );