The Ray Tracer Challenge: Cannot get rid of acne When implement Shadows in Chapter 8.

Hi, I’m working on the Chapter 8 of the book.
After I add add the point_offset, I’m still able to see acne:

In the image above, I remove all balls to make things easier. I notice that for some of the hit point falls into the walls. Therefore it will have very small t (but greater than the epsilon) for the intersection.

I make all tests pass except “The Color with an intersection behind the ray”. Could some one explain that why this case can pass with the shadow? I think the light should be blocked by the outer ball.

May I get some suggestion to debug my code?

Here is my github repo: GitHub - Henrai/TheRayTracingChallenge

Move the discussion to here: Ch 8, Cannot get rid of acne | The Ray Tracer Challenge