I want to do picking via IdMapping in Three.js
Because of performance issues I only have one huge geometry, computed like this:
for (var i = 0; i <
It has to be geometry.vertexColors instead of geometry.colors (push a colour per vertex).
And the material:
material = new THREE.MeshBasicMaterial({ vertexColors: THREE.VertexColors });