I am working on a raytracer for a large side project whose goal is to create realistic renderings without worrying about processor time. Basically pre-rendering, so I'm going to accuracy to speed.
I'm having trouble wrapping my head around more advanced math in lighting aspects. Basically, I have a point for my light. Assuming there is no distance offset, I would have to use the point on the polygon that I found and compare the normal value at that point with the angle of incidence to the light to find out my light value. Therefore, given the point on the plane normal to that plane and the point light, how could I figure out this angle?
I ask that I cannot find a link to search for the angle of incidence. I can find many links that describe in detail what to do when you received it, but it doesn’t tell me how to get it in the first place. I imagine something simple, but I just can’t explain it.
thanks
source share