Here is a sample: http://jsfiddle.net/c3shonu7/1/
The code demonstrates the creation of a BufferGeometry object by cloning an IcosahedronBufferGeometry's vertices. The goal is to apply a color gradient to the subdivided icosahedron, with lighter shades at the poles and darker shades at the equator. This is achieved by adjusting the lightness value of the vertex color based on the z-coordinate of each vertice.
color.setHSL(0.1, 0.3, Math.abs(vertices[i + 2]) / geometry.parameters.radius);
Despite this setup, the faces are currently being colored in a seemingly random manner. What could be causing this unexpected behavior?