mirror of
https://github.com/TheRedShip/RT_GPU.git
synced 2025-09-28 11:08:36 +02:00
+ | TopLevel builded
This commit is contained in:
@ -62,7 +62,25 @@ struct Vertex {
|
||||
# include "Scene.hpp"
|
||||
# include "SceneParser.hpp"
|
||||
# include "ObjParser.hpp"
|
||||
|
||||
struct AABB
|
||||
{
|
||||
glm::vec3 min;
|
||||
glm::vec3 max;
|
||||
|
||||
AABB(glm::vec3 min, glm::vec3 max) : min(min), max(max) {}
|
||||
|
||||
void grow( glm::vec3 p ) { min = glm::min( min, p ), max = glm::max( max, p ); }
|
||||
|
||||
float area()
|
||||
{
|
||||
glm::vec3 e = max - min;
|
||||
return (e.x * e.y + e.y * e.z + e.z * e.x);
|
||||
}
|
||||
};
|
||||
|
||||
# include "BVH.hpp"
|
||||
# include "TopBVH.hpp"
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user