made nearest_object_intersecting_ray agnostic to the object types
commitb401a2c9f8bb80c2bb0af123e32ef4d7c7d3f3d1
authorplouj <plouj@b8c14938-b733-429d-887c-d66ed1f8cd15>
Fri, 4 Jan 2008 20:19:10 +0000 (4 20:19 +0000)
committerplouj <plouj@b8c14938-b733-429d-887c-d66ed1f8cd15>
Fri, 4 Jan 2008 20:19:10 +0000 (4 20:19 +0000)
tree42862742d1dfc1a86d72b2407c1e9569eb92d0ff
parentca5f64845dcfd527be465804d2143a08609fb830
made nearest_object_intersecting_ray agnostic to the object types
made nearest_object_intersecting_ray actually properly sort objects by distance from ray origin
added a general ray_object_intersect function that will call appropriate intersection functions based on object type
made sure ray_sphere_intersect only returns positive (in front of ray) values
fixed return value of ray_sphere_intersect (from none to infinity)
made the default scene mor complex
updated the scene_test
added a nice distance based test to nearest_object_intersecting_ray_test

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