reset ray.near to 0.001 to avoid self intersection