- Fixed intersection distance calculation to handle three cases: - Ray starts outside AABB: use entry point (tMin) - Ray starts inside AABB: use exit point (tMax) - AABB behind ray: skip intersection - This fixes the issue where no intersections were detected (intersections=0)
1.4 MiB
1.4 MiB