From d071fc5c947689eca7726803a420013c519acdd9 Mon Sep 17 00:00:00 2001 From: ladevieq Date: Sun, 22 Aug 2021 22:58:03 +0200 Subject: Refactored diffuse brdf & brdf computation done in tangent --- include/scene.hpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'include/scene.hpp') 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 spheres; - std::vector triangles; + std::vector spheres; + // std::vector triangles; std::vector packed_nodes; }; -- cgit v1.3