Texture mapping done, with a big slowdown though.

http://legion.gibbering.net/paulius/RaytraceV02.zip
Some new controls to play around with:
R - toggle reflections
1,2,3 - adjust maximum subdivision count

About the slowdown Traveler described, it seam's non existent on nVidia card's, small on intel's, and horrible on ATI's, at least on those I tried. Anyone knows how come OpenGl's GL_LINE glPolygonMode give's these strange results on different cards.