How to implement a model-by-vertex lighting effect

How does three realize the lighting effect per Vertex of the model? do you have any relevant cases? thank you.

You may find helpful as an introduction to GPU rendering and shaders. All realtime 3D engines use graphics cards and shaders for rendering.

In fact, I want to realize the shadow effect of a solid-color model through the shadow material material; for example, like the effect of this link, this is the native webgl I want to change to three, but it’s a failure.