Yes, the geometry has an attribute called colors. Assigning colors to this array and setting material vertexColors: !0 will do the trick.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Buffer Geometry not showing on screen | 14 | 2570 | September 10, 2019 | |
| Three.js set a break when using Line2 and LineMaterial | 4 | 211 | July 16, 2024 | |
| After dynamically updating the vertices of lineGeometry of Line2, line segment colors are not displayed | 2 | 62 | September 11, 2024 | |
| CatmullRomCurve3 question regarding having different color lines between each point | 9 | 209 | October 31, 2024 | |
| Performant way to render many disconnected lines with different numbers of verticies | 4 | 2383 | June 24, 2020 |