From 4ae9a520d97dcaf69f4a0cd044a4fc3fe689924d Mon Sep 17 00:00:00 2001 From: ladevieq Date: Mon, 7 Feb 2022 21:53:14 +0100 Subject: Compute shader render pass api --- shaders/compute.comp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'shaders/compute.comp') diff --git a/shaders/compute.comp b/shaders/compute.comp index 6ca193e..83a8f0d 100644 --- a/shaders/compute.comp +++ b/shaders/compute.comp @@ -286,8 +286,9 @@ void main() { } float spp_scale = (1.0 / bufs.scene.sample_index); - vec3 acc_color = srgb_to_linear(imageLoad(images[nonuniformEXT(bufs.accumulation_image_index)], coords).xyz); - out_color = linear_to_srgb(mix(acc_color, out_color, spp_scale)); + // vec3 acc_color = srgb_to_linear(imageLoad(images[nonuniformEXT(bufs.accumulation_image_index)], coords).xyz); + // out_color = linear_to_srgb(mix(acc_color, out_color, spp_scale)); + out_color = linear_to_srgb(out_color); for (uint i = 0; i < bufs.scene.downscale_factor; i++) { for (uint j = 0; j < bufs.scene.downscale_factor; j++) { -- cgit v1.3