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);
fork icon57
star icon254
watch icon10

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 }
fork icon0
star icon1
watch icon2

+ 11 other calls in file

Other functions in three

Sorted by popularity

function icon

three.Vector3 is the most popular function in three (22341 examples)