Curious if unique colors for InstancedMesh is on the three.js team’s radar? I’ve looked through the source and it’s not a quick patch. I believe shaders amongst other parts would have to be updated. I’d be more than happy to take on the work. Any tips would be appreciated.
4 thoughts on “Feature: Unique colors for InstancedMesh”
Comments are closed.
On the r.113dev branch:
https://raw.githack.com/mrdoob/three.js/dev/examples/webgl_instancing_modified.html
Alternatively, without a custom shader:
three.js/examples/webgl_instancing_scatter.html
Lines 82 to 98
in
4541808
@donmccurdy You can change the example if you want. I thought it would be nice to show how to hack the shader, though. Adding instanced color seemed to be a good option at the time. 🙂
@WestLangley @donmccurdy sorry to bother you guys again but this is what you helped me out with Matrix Body Simulation. Again, thank you so much.🙏