stop when light was hit, its faster and there is a problem when the ray bounces to many times, a stack overflow can happen(on my machine if the recursion depth is about 4000, although its still possible, the chance should be much less, especially if there is much light...)