Original Post
I just managed to understand ray tracing (without reflection) considering light source(s). What you need are two direction vectors (from intersection point to light and right angle of intersection point's object).
Somehow I know how to calculate the correct direction vector of a sphere ( (intersection point - sphere central point) / radius ), but how do you calculate the right angle direction vector of a plane or a rectangle?
lg rumpfi88
Somehow I know how to calculate the correct direction vector of a sphere ( (intersection point - sphere central point) / radius ), but how do you calculate the right angle direction vector of a plane or a rectangle?
lg rumpfi88