aboutsummaryrefslogtreecommitdiffstats
path: root/shaders
diff options
context:
space:
mode:
authorladevieq <ladevie.quentin@gmail.com>2021-01-13 21:12:57 +0100
committerladevieq <ladevie.quentin@gmail.com>2021-01-13 21:12:57 +0100
commit90404ddb2c079ab8e7865910332b1b823644a592 (patch)
tree41a225ddfa32337028d7b4f65153d47771372464 /shaders
parent6bbca01a9b381aff3df30e3150f9778d17e0396a (diff)
Fix rendering
Diffstat (limited to 'shaders')
-rw-r--r--shaders/compute.comp3
1 files changed, 1 insertions, 2 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));
}