let positions = new Float32Array(points.length * 3);
let colors = new Float32Array(points.length * 3);
*/
处理positions和colors
/*
let bufferGeometry=new THREE.BufferGeometry()
bufferGeometry.addAttribute('position', new THREE.BufferAttribute(positions, 3));
bufferGeometry.addAttribute('color', new THREE.BufferAttribute(colors, 3));
bufferGeometry.computeBoundingBox();
let material = new THREE.PointsMaterial({
  size: 2,
  vertexColors: THREE.VertexColors,
  transparent: true,
  opacity: 1,
  sizeAttenuation: false
});
let mesh=new THREE.Points(bufferGeometry,material)

 

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-26
  • 2022-12-23
  • 2022-12-23
  • 2021-11-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-10-11
  • 2022-12-23
  • 2021-11-16
  • 2022-12-23
  • 2022-12-23
  • 2021-10-06
相关资源
相似解决方案