Today, I saw an example of "OpenGL Super Collection", finally knowing the example of the shadow of objects, the following is a screenshot of the program I have modified (where the yellow dot is the light source):