aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--shaders/compute.comp3
-rw-r--r--src/main.cpp4
2 files changed, 3 insertions, 4 deletions
diff --git a/shaders/compute.comp b/shaders/compute.comp
index 6f47408..e236f3e 100644
--- a/shaders/compute.comp
+++ b/shaders/compute.comp
@@ -223,6 +223,5 @@ void main() {
}
float spp_scale = (1.0 / samples_per_pixel);
- out_color = sqrt(out_color * spp_scale);
- imageStore(output_image, ivec2(x, y), out_color);
+ imageStore(output_image, ivec2(x, y), sqrt(out_color * spp_scale));
}
diff --git a/src/main.cpp b/src/main.cpp
index a9c7123..5bd2f6e 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -88,8 +88,8 @@ int main() {
window wnd { width , height };
vkrenderer renderer { wnd };
- const uint32_t samples_per_pixel = 1;
- const uint32_t max_depth = 1;
+ const uint32_t samples_per_pixel = 25;
+ const uint32_t max_depth = 25;
const vec3 camera_position{ 13.0, 2.0, 3.0 };
const vec3 camera_target{ 0.0, 0.0, 0.0 };