aboutsummaryrefslogtreecommitdiffstats
path: root/include/scene.hpp
diff options
context:
space:
mode:
authorladevieq <ladevie.quentin@gmail.com>2021-07-25 16:52:28 +0200
committerladevieq <ladevie.quentin@gmail.com>2021-07-25 16:52:28 +0200
commit3bfd2d67e1c2d7e2d77c431f54dd68356c94d787 (patch)
treec3fbd47d8d273c08c64c363342fff35c04f780d0 /include/scene.hpp
parent3dd870b001bef62aaa501257352d968d1346c7f2 (diff)
Slowly rendering sponza
Diffstat (limited to 'include/scene.hpp')
-rw-r--r--include/scene.hpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/include/scene.hpp b/include/scene.hpp
index 364e3a7..2a9ebf2 100644
--- a/include/scene.hpp
+++ b/include/scene.hpp
@@ -15,7 +15,8 @@ class scene {
camera cam;
- uint32_t max_bounce = 50;
+ // uint32_t max_bounce = 50;
+ uint32_t max_bounce = 1;
// Output image resolution
uint32_t width;
@@ -23,9 +24,9 @@ class scene {
uint32_t sample_index = 0;
- uint32_t spheres_count = 0;
- // uint32_t triangles_count = 0;
- uint32_t enable_dof = true;
+ // uint32_t spheres_count = 0;
+ uint32_t triangles_count = 0;
+ uint32_t enable_dof = false;
uint32_t debug_bvh = false;
uint32_t padding;
@@ -40,10 +41,9 @@ public:
metadata meta;
-
// Geometry & BVH
- std::vector<sphere> spheres;
- // std::vector<triangle> triangles;
+ // std::vector<sphere> spheres;
+ std::vector<triangle> triangles;
std::vector<bvh_node> nodes;
};