1 #ifndef MOBILERT_SCENE_HPP 2 #define MOBILERT_SCENE_HPP 13 #include <glm/glm.hpp> 25 ::std::vector<::std::unique_ptr<Light>>
lights_ {};
32 explicit Scene() =
default;
52 static ::MobileRT::AABB
getBounds(const ::std::vector<T> &primitives) {
54 for (
const T &primitive : primitives) {
57 const ::MobileRT::AABB res {
59 bounds.getPointMax() + ::glm::vec3 {
Epsilon}
66 #endif //MOBILERT_SCENE_HPP const float RayLengthMax
Definition: Constants.hpp:33
Scene & operator=(const Scene &scene)=delete
::std::vector<::std::unique_ptr< Light > > lights_
Definition: Scene.hpp:25
::std::vector< Sphere > spheres_
Definition: Scene.hpp:23
::std::vector< Material > materials_
Definition: Scene.hpp:26
const AABB box1
Definition: TestAABB.cpp:21
::MobileRT::AABB getBoxBounds(const AABB &box1, const AABB &box2)
Definition: Scene.cpp:36
const float Epsilon
Definition: Constants.hpp:22
~Scene()
Definition: Scene.cpp:13
::std::vector< Plane > planes_
Definition: Scene.hpp:24
::MobileRT::AABB getBounds(const ::std::vector< T > &primitives)
Definition: Scene.hpp:52
::std::vector< Triangle > triangles_
Definition: Scene.hpp:22
::glm::vec3 getPointMin() const
Definition: AABB.cpp:92