Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Bakker <jeroen@blender.org>2021-02-03 17:27:52 +0300
committerJeroen Bakker <jeroen@blender.org>2021-02-03 17:27:52 +0300
commit10e3b2dc8e5ed589cf89bc4e139e35a8a4f366a0 (patch)
treebe65c2d9aeef268fa58de70371995e679fa9d308
parente1f38b21693af75abba757c0dd89249dc6ef2e39 (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.
-rw-r--r--source/blender/draw/engines/eevee/eevee_cryptomatte.c2
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);