Setting material ambient color by vertices

Hey Guys,

so I am using the example of 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

Hi,

Would an emissive color work for you?

https://www.babylonjs-playground.com/#ZRZIIZ#24

Edit:

Here’s with ambientColor:

https://www.babylonjs-playground.com/#ZRZIIZ#26