THREE.Points vertex color not working when geometry is from mesh.

Description of the problem

When creating a THREE.Points() using geometry from a mesh, the vertex colors aren’t working and the points are displayed all in white (instead of random colors, as defined in example below).

Interestingly, the points do show random colors when the geometry is not related to a mesh but instead is a new object.

Example here:

Three.js version
  • Dev
  • r99
Browser
  • All of them
  • Chrome
  • Firefox
  • Internet Explorer
OS
  • All of them
  • Windows
  • macOS
  • Linux
  • Android
  • iOS
Hardware Requirements (graphics card, VR Device, …)

Macbook Pro 2018

Author: Fantashit

1 thought on “THREE.Points vertex color not working when geometry is from mesh.

Comments are closed.