[size="3"]Simple Lighting The color of a surface is determined by the angle (dot product) between the normal vector of that surface and the light vector: The light source is assumed to be placed "at ...
This article describes how to implement a very realistic shadow effect using nVIDIA's Cg programming language and OpenGL. Although the focus of the article is on Cg, the shadowing algorithm is ...