When the ray is perpendicular to the plane, their dot product is zero, resulting in the denominator of the intersection equation being 0. This makes sense, since no light would be hitting the plane.
nobugnohair
Check if d.N is close to zero before any division. Otherwise the floating points will cause problem
When the ray is perpendicular to the plane, their dot product is zero, resulting in the denominator of the intersection equation being 0. This makes sense, since no light would be hitting the plane.
Check if d.N is close to zero before any division. Otherwise the floating points will cause problem