I want to change colors of some points dynamically.
I do following for point at location j:
geometry.attributes.color.array[3*j] = r;
geometry.attributes.color.array[3*j+1] = g;
geometry.attributes.color.array[3*j+2] = b;
geometry.attributes.color.needsUpdate = true;
But change is not reflected.
What else would I need to do to achieve it?