If the light source is positional, then the point of intersection p between the line through l and s and the plane P is given by
where (l − s) is a vector from s to l.
If, on the other hand, the light source is directional then l is a vector rather than a point and line parallel to l through the point s is given by