refactored lighting_function() by using some local variables
commit1bea6c36184ceabebaf4b2a7b0dbbaf8120a7cdc
authorplouj <plouj@b8c14938-b733-429d-887c-d66ed1f8cd15>
Fri, 25 Jan 2008 02:03:25 +0000 (25 02:03 +0000)
committerplouj <plouj@b8c14938-b733-429d-887c-d66ed1f8cd15>
Fri, 25 Jan 2008 02:03:25 +0000 (25 02:03 +0000)
treeacbe07707c11b17edc0dee896101280dec08ecb8
parentbdd64c6b936391f6cf33e5ed99726e630ef235dd
refactored lighting_function() by using some local variables
re-ordered the illumination formula to make it easier to extend and to allow for shadows
added simple shadow calculation to the lighting_function()
implemented a shadow_factor() function

git-svn-id: http://svn.plouj.com/repos/eraytracer@49 b8c14938-b733-429d-887c-d66ed1f8cd15
raytracer.erl