Vertex Colors with no interpolation

Hello!

I would like to set up a shader that uses vertex colors but does not interpolate. Instead, each pixel should use the vertex color of it’s nearest vertex (instead of the vertex color interpolated between the nearest vertices.)

To demonstrate what I mean, see how these vertexColors blend smoothly between each other? I don’t want that. It should be solid, flat colors with no smooth blending between them.

Is it possible to simply turn on the nointerpolation option? If I can’t do this in material graph, how does one create custom shader to do this?

Thanks!