aboutsummaryrefslogtreecommitdiffstats
path: root/shaders/compute.comp
diff options
context:
space:
mode:
authorladevieq <ladevie.quentin@gmail.com>2021-03-09 22:21:12 +0100
committerladevieq <ladevie.quentin@gmail.com>2021-03-09 22:21:12 +0100
commit8786cb3da3df93e691fb1be85998b5f4f42bba20 (patch)
treea33701ce46e610881380f0820996b99239d97bb1 /shaders/compute.comp
parente4c24757a15a8a33019e4e2c28302b583b9366b7 (diff)
Fix taa
Diffstat (limited to 'shaders/compute.comp')
-rw-r--r--shaders/compute.comp2
1 files changed, 1 insertions, 1 deletions
diff --git a/shaders/compute.comp b/shaders/compute.comp
index 4ee0a69..411c520 100644
--- a/shaders/compute.comp
+++ b/shaders/compute.comp
@@ -229,5 +229,5 @@ void main() {
float spp_scale = (1.0 / samples_per_pixel);
vec4 acc_color = imageLoad(accumulation_image, ivec2(x, y));
- imageStore(output_image, ivec2(x, y), mix(out_color, acc_color, spp_scale));
+ imageStore(output_image, ivec2(x, y), acc_color + out_color * spp_scale);
}