From 90404ddb2c079ab8e7865910332b1b823644a592 Mon Sep 17 00:00:00 2001 From: ladevieq Date: Wed, 13 Jan 2021 21:12:57 +0100 Subject: Fix rendering --- shaders/compute.comp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'shaders') 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)); } -- cgit v1.3