diff options
author | Jeroen Bakker <jeroen@blender.org> | 2021-02-03 17:27:52 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2021-02-03 17:27:52 +0300 |
commit | 10e3b2dc8e5ed589cf89bc4e139e35a8a4f366a0 (patch) | |
tree | be65c2d9aeef268fa58de70371995e679fa9d308 /source/blender/draw/engines/eevee/eevee_cryptomatte.c | |
parent | e1f38b21693af75abba757c0dd89249dc6ef2e39 (diff) |
Cryptomatte: Incorrect Coverage with Volumetrics
Related to {D10286}. When volumetrics are used in the scene the coverage
is incorrect. The reason is that the current sample is 1 over the num
samples that are calculated.
Diffstat (limited to 'source/blender/draw/engines/eevee/eevee_cryptomatte.c')
-rw-r--r-- | source/blender/draw/engines/eevee/eevee_cryptomatte.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/engines/eevee/eevee_cryptomatte.c b/source/blender/draw/engines/eevee/eevee_cryptomatte.c index 31e54e371b1..13a3f1766a9 100644 --- a/source/blender/draw/engines/eevee/eevee_cryptomatte.c +++ b/source/blender/draw/engines/eevee/eevee_cryptomatte.c @@ -503,7 +503,7 @@ static void eevee_cryptomatte_postprocess_weights(EEVEE_Data *vedata) volumetric_transmittance_buffer = GPU_texture_read( txl->volume_transmittance_accum, GPU_DATA_FLOAT, 0); } - const int num_samples = effects->taa_current_sample; + const int num_samples = effects->taa_current_sample - 1; int accum_pixel_index = 0; int accum_pixel_stride = eevee_cryptomatte_pixel_stride(view_layer); |