From 5d04af401d5466c7908a001c70009cb4da285abd Mon Sep 17 00:00:00 2001 From: ladevieq Date: Sun, 23 May 2021 23:04:45 +0200 Subject: Add dof toggler & attempt to use bvh --- src/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index f8699af..68dd0ee 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -199,6 +199,10 @@ int main() { ImGui::Text("frame time %f ms\n", delta_time); ImGui::Text("frame count %u\n", ((input_data*) renderer.compute_shader_buffer.alloc_info.pMappedData)->sample_index); + if (ImGui::Checkbox("depth of field", (bool*)&((input_data*) renderer.compute_shader_buffer.alloc_info.pMappedData)->enable_dof)) { + reset_accumulation = true; + } + ImGui::SliderInt("bounces", (int32_t*)&((input_data*) renderer.compute_shader_buffer.alloc_info.pMappedData)->max_bounce, 2, 250); if (ImGui::Checkbox("debug bvh", (bool*)&((input_data*) renderer.compute_shader_buffer.alloc_info.pMappedData)->debug_bvh)) { -- cgit v1.3