aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
authorladevieq <ladevie.quentin@gmail.com>2021-02-10 22:21:34 +0100
committerladevieq <ladevie.quentin@gmail.com>2021-02-10 22:21:34 +0100
commiteaf294dd2eed3423f7f27967fd5441059fd5b809 (patch)
treef199d9ad6331c16558ca816e0c7f25ec57e6d008 /src/main.cpp
parent5e39b7485d08345a4eb3686b344840791888d1f9 (diff)
Use two images for accumulation (TAA style)
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index c87e57a..9e3634f 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -46,7 +46,7 @@ int main() {
const float aspect_ratio = 16.0 / 9.0;
uint32_t width = 400;
uint32_t height = width / aspect_ratio;
- const uint32_t samples_per_pixel = 10;
+ const uint32_t samples_per_pixel = 25;
window wnd { width , height };
@@ -80,6 +80,7 @@ int main() {
canRender = true;
renderer.recreate_swapchain();
((input_data*) renderer.compute_shader_buffer.mapped_ptr)->cam.set_aspect_ratio((float)event.width / (float)event.height);
+ ((input_data*) renderer.compute_shader_buffer.mapped_ptr)->sample_index = 0;
}
break;
}