mirror of
https://github.com/TheRedShip/RT_GPU.git
synced 2025-09-27 10:48:34 +02:00
+ | Starting bvh
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user