VertexColor material + light, how to?


I use in my app: “Common/MatDefs/Misc/VertexColor.j3md” material. However, I want now to add light, but obviously my mesh takes the color of the color buffer that I assign. I only need that every mesh to have the same color as usual, but to be able to reflect light and cast shadows. I can’t create a texture, because the color is random.

How can I introduce light in my scene?

Thank you!