Original Post
Hi, I got a question about Graphic Programming. A very basic graphic programming uses almost no OpenGL Lib. So Im trying to simulate a basic shading to a polygon build by triangles. So I got the light source, the color of the light, and triangles, which has a color. I know that I should find the normal of each triangle, but then what happened? How the angle between normal of triangles and light source may affect the end result? How can I represent the color of the triangle based on the lighting effect in a math formula? Thanks in advance