# Replace material color for InstancedMesh instance with .setColorAt()

**URL:** <https://discourse.threejs.org/t/replace-material-color-for-instancedmesh-instance-with-setcolorat/40285>\
**Category:** Questions\
**Tags:** materials\
**Created:** [July 13, 2022, 9:01am UTC](https://discourse.threejs.org/t/replace-material-color-for-instancedmesh-instance-with-setcolorat/40285 "2022-07-13T09:01:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mazarhan](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mazarhan/32/9262_2.png) [@Mazarhan](https://discourse.threejs.org/u/Mazarhan)\
**Post date:** [July 13, 2022, 9:01am UTC](https://discourse.threejs.org/t/replace-material-color-for-instancedmesh-instance-with-setcolorat/40285/1 "2022-07-13T09:01:09Z")

</div>

Hi. Is it possible to completely replace material color for InstancedMesh instance with .setColorAt(). Atm material color is additive with .setColorAt() color and I would like to have only setColorAt() color if that color is present.

---

<div class="post-metadata">

**Author:** ![Mugen87](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mugen87/32/5645_2.png) [@Mugen87](https://discourse.threejs.org/u/Mugen87)\
**Post date:** [July 13, 2022, 10:42am UTC](https://discourse.threejs.org/t/replace-material-color-for-instancedmesh-instance-with-setcolorat/40285/2 "2022-07-13T10:42:56Z")

</div>

> [@Mazarhan](#):
>
> Atm material color is additive

It’s actually multiplicative. Since it is not possible to “overwrite” all other color values of the material with the instance color, you have to configure default values. So the `color` property should be `0xffffff` and color maps set to `null`. You potentially have to remove the `color` buffer attribute from the geometry, too.
