var render = function () {
requestAnimationFrame( render );
geometry.attributes.color.set([Math.random(),0,0],0);
geometry.attributes.color.needsUpdate = true;
renderer.render(scene, camera);
};
i can’t see any color update , am i missing something ?
using the latest version of Threejs
What are you looking to achieve here?
Are you using vertexColors
? If so, why your color attribute only has 3 values? It should contain 3 values for each vertex in your geometry.
A little more information is needed in order to help you with this.
1 Like
i want to change only 1 vertex color , im using offset 0 , so the first vertex only for test purpose
my approach is wrong ?
and yes i am using VertexColor