aboutsummaryrefslogtreecommitdiffstats
path: root/shaders
diff options
context:
space:
mode:
authorladevieq <ladevie.quentin@gmail.com>2022-02-07 21:53:14 +0100
committerladevieq <ladevie.quentin@gmail.com>2022-02-07 21:53:14 +0100
commit4ae9a520d97dcaf69f4a0cd044a4fc3fe689924d (patch)
treeb2bdcef4ff0bda3dca80b11da42c597ccc596a0b /shaders
parentab39ab82b4dc60e4a181140dc91ee046e5daa6ea (diff)
Compute shader render pass api
Diffstat (limited to 'shaders')
-rw-r--r--shaders/compute.comp5
1 files changed, 3 insertions, 2 deletions
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++) {