# How to add instancing support in Shader Material?

**URL:** <https://forum.babylonjs.com/t/how-to-add-instancing-support-in-shader-material/15115>\
**Category:** Questions\
**Created:** [October 22, 2020, 3:52pm UTC](https://forum.babylonjs.com/t/how-to-add-instancing-support-in-shader-material/15115 "2020-10-22T15:52:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ankit\_Singh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/ankit_singh/32/9743_2.png) [@Ankit\_Singh](https://forum.babylonjs.com/u/Ankit_Singh)\
**Post date:** [October 22, 2020, 3:52pm UTC](https://forum.babylonjs.com/t/how-to-add-instancing-support-in-shader-material/15115/1 "2020-10-22T15:52:34Z")

</div>

Hello Guys,

so ya, What code I have to add in my shader material to render instancedMesh?

Thanks.

---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [October 22, 2020, 4:41pm UTC](https://forum.babylonjs.com/t/how-to-add-instancing-support-in-shader-material/15115/2 "2020-10-22T16:41:34Z")

</div>

This should help: [Instances with ShaderMaterial](https://forum.babylonjs.com/t/instances-with-shadermaterial/8201/6) or [How to set custom attribute on ShaderMaterial for use with instances and clones at the same time?](https://forum.babylonjs.com/t/how-to-set-custom-attribute-on-shadermaterial-for-use-with-instances-and-clones-at-the-same-time/9448)
