diff options
| author | ladevieq <ladevie.quentin@gmail.com> | 2021-08-22 22:58:03 +0200 |
|---|---|---|
| committer | ladevieq <ladevie.quentin@gmail.com> | 2021-08-22 22:58:03 +0200 |
| commit | d071fc5c947689eca7726803a420013c519acdd9 (patch) | |
| tree | 4d96af4d9725bcdf2741cb73181d49a8fe5d5682 /include/scene.hpp | |
| parent | 7db04c9ae57b087f1d122d67a75fa02563911796 (diff) | |
Refactored diffuse brdf & brdf computation done in tangent
Diffstat (limited to 'include/scene.hpp')
| -rw-r--r-- | include/scene.hpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/include/scene.hpp b/include/scene.hpp index 3c69425..4eed567 100644 --- a/include/scene.hpp +++ b/include/scene.hpp @@ -14,18 +14,16 @@ class scene { // uint32_t max_bounce = 50;
uint32_t max_bounce = 3;
+ uint32_t min_bounce = 1;
- // Output image resolution
uint32_t width;
uint32_t height;
uint32_t sample_index = 0;
- // uint32_t spheres_count = 0;
- uint32_t triangles_count = 0;
uint32_t enable_dof = false;
- uint32_t debug_bvh = false;
- uint32_t downscale_factor = 4;
+ uint32_t debug_bvh = false;
+ int32_t downscale_factor = 4;
metadata(camera cam, uint32_t width, uint32_t height)
: cam(cam), width(width), height(height) {}
@@ -39,8 +37,8 @@ public: metadata meta;
// Geometry & BVH
- // std::vector<sphere> spheres;
- std::vector<triangle> triangles;
+ std::vector<sphere> spheres;
+ // std::vector<triangle> triangles;
std::vector<packed_bvh_node> packed_nodes;
};
|
