Original Post
Hey guys,
For a class we are writing a raytracer, and we are currently trying to extend the different objects we can intersect from only spheres to cubes and rectangles. Were not quite sure how to approach this problem. We were told some theory about "slabs", but it isn''t very helpful. Does anyone have any suggestions on how to implement this kind of intersection? Thanks for the help!
-brad