# Independent vertex colors in different GLTF container instances

**URL:** <https://forum.babylonjs.com/t/independent-vertex-colors-in-different-gltf-container-instances/59782>\
**Category:** Questions\
**Tags:** vertex-colors, verticesdata\
**Created:** [July 28, 2025, 6:10pm UTC](https://forum.babylonjs.com/t/independent-vertex-colors-in-different-gltf-container-instances/59782 "2025-07-28T18:10:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cyborg\_ean](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/cyborg_ean/32/42302_2.png) [@cyborg\_ean](https://forum.babylonjs.com/u/cyborg_ean)\
**Post date:** [July 28, 2025, 6:10pm UTC](https://forum.babylonjs.com/t/independent-vertex-colors-in-different-gltf-container-instances/59782/1 "2025-07-28T18:10:10Z")

</div>

I’ve trying to better understand what I’m missing in order to make an imported and instanced GLTF container mesh(s) have their own vertex color data that’s independent of other duplicated meshes. I think I might be somewhere in the right neighborhood with each mesh needing it’s own vertex buffer but I honestly don’t know what I’m doing.

repro: [Babylon.js Playground](https://playground.babylonjs.com/#Z51R34)

Current issue (same colors)

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/f/4/f435e9522f8c58737122040ec43791115a8e5be4.jpeg)

What I’m looking to achieve: (different colors)

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/e/a/eaac1b364033990d4401ae9200952f016a1e1630.jpeg)

It’s my understanding that there’s multiple ways of doing this, I’d be interested in some of the tradeoffs and a perceived cheapest (read: best performance) way to do it. Anything to keep my game client running at 60fps on mobile 😌

Addendum I’d be happy to write a PR to the docs with a short tutorial on creating gltf characters with custom vertex colors upon receiving help and understanding of this issue! At the very least to centralize information for this particular task and make it more query-able’.

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [July 28, 2025, 6:33pm UTC](https://forum.babylonjs.com/t/independent-vertex-colors-in-different-gltf-container-instances/59782/2 "2025-07-28T18:33:35Z")

</div>

Here we are:  
[vertex dolor data bad example | Babylon.js Playground](https://playground.babylonjs.com/#Z51R34#1)

I also made your color generation a bit simpler 🙂

---

<div class="post-metadata">

**Author:** ![cyborg\_ean](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/cyborg_ean/32/42302_2.png) [@cyborg\_ean](https://forum.babylonjs.com/u/cyborg_ean)\
**Post date:** [July 28, 2025, 6:49pm UTC](https://forum.babylonjs.com/t/independent-vertex-colors-in-different-gltf-container-instances/59782/3 "2025-07-28T18:49:08Z")

</div>

Thank you so much! Not sure how I ended up so far off course that I didn’t see `makeGeometryUnique` in the docs! 🙏
