# Setting material ambient color by vertices

**URL:** <https://forum.babylonjs.com/t/setting-material-ambient-color-by-vertices/7347>\
**Category:** Questions\
**Created:** [December 2, 2019, 10:59pm UTC](https://forum.babylonjs.com/t/setting-material-ambient-color-by-vertices/7347 "2019-12-02T22:59:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kzaky](https://avatars.discourse-cdn.com/v4/letter/k/9fc29f/32.png) [@kzaky](https://forum.babylonjs.com/u/kzaky)\
**Post date:** [December 2, 2019, 10:59pm UTC](https://forum.babylonjs.com/t/setting-material-ambient-color-by-vertices/7347/1 "2019-12-02T22:59:53Z")

</div>

Hey Guys,

so I am using the example of [https://www.babylonjs-playground.com/#ZRZIIZ#2](https://www.babylonjs-playground.com/#ZRZIIZ#2) to set different colours at different vertices of a mesh. Not sure where the colorkind sets the color to, but it only works with normal lights. I am trying to make it work with scene.ambientcolor rather than a light so I can have an even color all over the mesh.

I’d appreciate any ideas to solve this!  
Thank you

---

<div class="post-metadata">

**Author:** ![Gijs](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/gijs/32/44_2.png) [@Gijs](https://forum.babylonjs.com/u/Gijs)\
**Post date:** [December 2, 2019, 11:15pm UTC](https://forum.babylonjs.com/t/setting-material-ambient-color-by-vertices/7347/2 "2019-12-02T23:15:19Z")

</div>

Hi,

Would an emissive color work for you?

[https://www.babylonjs-playground.com/#ZRZIIZ#24](https://www.babylonjs-playground.com/#ZRZIIZ#24)

Edit:

Here’s with ambientColor:

[https://www.babylonjs-playground.com/#ZRZIIZ#26](https://www.babylonjs-playground.com/#ZRZIIZ#26)
