Whitted style ray tracer with KD-tree intersection test.