From 3a43bab624f271588401daca46c512a1f85593f6 Mon Sep 17 00:00:00 2001 From: ladevieq Date: Tue, 9 Feb 2021 21:00:33 +0100 Subject: Extend API, fix api image creation, attempt at accumulation Add blit_full function to the API Fix the create_image function Change the frame record to use an accumulation image --- src/utils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/utils.cpp') diff --git a/src/utils.cpp b/src/utils.cpp index 3416714..00745dc 100644 --- a/src/utils.cpp +++ b/src/utils.cpp @@ -93,8 +93,8 @@ struct input_data create_inputs(uint32_t width, uint32_t height) { // Image dimensions const float aspect_ratio = (float)width / (float) height; - const uint32_t samples_per_pixel = 1; - const uint32_t max_depth = 2; + const uint32_t samples_per_pixel = 10; + const uint32_t max_depth = 5; const vec3 camera_position{ 13.0, 2.0, 3.0 }; const vec3 camera_target{ 0.0, 0.0, 0.0 }; -- cgit v1.3