implement box intersect

This commit is contained in:
Dynamitos
2025-01-24 19:23:58 +01:00
parent 854399c775
commit 2111238935
2 changed files with 13 additions and 4 deletions
+1 -1
View File
@@ -78,7 +78,7 @@ std::optional<IntersectionInfo> BVH::traceRay(Ray ray)
std::vector<IntersectionInfo> BVH::generateIntersections(PNode& currentNode, Ray ray)
{
if (!currentNode->aabb.intersects(ray))
if (!currentNode->aabb.intersects(ray, 0, 1))
{
return {};
}