diff options
| author | ladevieq <ladevie.quentin@gmail.com> | 2021-05-23 23:04:45 +0200 |
|---|---|---|
| committer | ladevieq <ladevie.quentin@gmail.com> | 2021-05-23 23:04:45 +0200 |
| commit | 5d04af401d5466c7908a001c70009cb4da285abd (patch) | |
| tree | 89b7afff9bd9c37eb0f42fe9476b5b704b34eb65 /src/main.cpp | |
| parent | 2c07c0b7df2b13cd5deea8233e1c4eb61a85a766 (diff) | |
Add dof toggler & attempt to use bvh
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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)) { |
