+ | Starting bvh

This commit is contained in:
TheRedShip
2025-01-16 23:50:09 +01:00
parent 67eca73d47
commit 6f80a66550
10 changed files with 204 additions and 16 deletions

View File

@ -52,6 +52,13 @@ bool Scene::parseScene(char *name)
}
}
file.close();
//bvh
BVH *bvh = new BVH(_gpu_objects, 0, _gpu_objects.size());
bvh->showAABB(this);
// addObject(new Cube((bvh->getAABB().max + bvh->getAABB().min) / 2.0f, bvh->getAABB().max - bvh->getAABB().min, 7));
//
return (true);
}