fixed some bugs, looking better...
rearranging intersect_test gives a 4x speedup... need to investigate
shadows are working, floor patterns are not....
pseudo random function is not working, switching to rand() gives the correct results
cleaning up