📜  dot geometru 三个js - Javascript代码示例

📅  最后修改于: 2022-03-11 15:02:57.907000             🧑  作者: 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 );