How to use the PointCloudMaterial function from three
Find comprehensive JavaScript three.PointCloudMaterial code examples handpicked from public code repositorys.
82 83 84 85 86 87 88 89 90
*/ Grid.prototype.render = function () { var group = new THREE.Object3D(); // points var pointCloudMaterial = new THREE.PointCloudMaterial({ size: 0.3 }); var pointCloud = new THREE.PointCloud(this.points, pointCloudMaterial);
57
254
10
GitHub: bgun/cosmosis
37 38 39 40 41 42 43 44 45 46
} } geometry.colors = colors; // var pMaterial = new THREE.PointCloudMaterial({size: 0.01}); var sMaterial = new THREE.ShaderMaterial( { attributes: { color: { type: 'v3', value: colorsh }, luminosity: { type: 'f', value: lumsh }
0
1
2
+ 11 other calls in file
three.Vector3 is the most popular function in three (22341 examples)