If I have created say a rectangular Pyramid not using cone geometry, but using buffer geometry and co-ordinates, how do i color it?
I suggest you study the related code first. If you stuck, please your current work of progress as a editable live example.
Take a look at the Collection of examples from discourse.threejs.org
.addAttribute now is .setAttribute
I got my solution, Thank you.