very basic thing works

This commit is contained in:
Dynamitos
2025-01-25 15:22:49 +01:00
parent 42ef4cda81
commit 86b6d678f6
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -86,7 +86,7 @@ std::optional<IntersectionInfo> BVH::traceRay(Ray ray)
std::vector<IntersectionInfo> BVH::generateIntersections(PNode& currentNode, Ray ray)
{
if (!currentNode->aabb.intersects(ray, 0, 1))
if (!currentNode->aabb.intersects(ray, 0, std::numeric_limits<float>::max()))
{
return {};
}