points in three js

Solutions on MaxInterview for points in three js by the best coders in the world

showing results for - "points in three js"
Santiago
27 Aug 2018
1var dotGeometry = new THREE.Geometry();
2dotGeometry.vertices.push(new THREE.Vector3( 0, 0, 0));
3var dotMaterial = new THREE.PointsMaterial( { size: 1, sizeAttenuation: false } );
4var dot = new THREE.Points( dotGeometry, dotMaterial );
5scene.add( dot );
6