[Bf-blender-cvs] [5fddc4a3b12] blender-v3.3-release: Fix T101065: wrong denoising depth after ray precision improvements
Brecht Van Lommel
noreply at git.blender.org
Wed Sep 21 16:38:42 CEST 2022
Commit: 5fddc4a3b12832af1d06a782b35d5035955bcae8
Author: Brecht Van Lommel
Date: Thu Sep 15 15:30:11 2022 +0200
Branches: blender-v3.3-release
https://developer.blender.org/rB5fddc4a3b12832af1d06a782b35d5035955bcae8
Fix T101065: wrong denoising depth after ray precision improvements
===================================================================
M intern/cycles/kernel/film/passes.h
===================================================================
diff --git a/intern/cycles/kernel/film/passes.h b/intern/cycles/kernel/film/passes.h
index 1f5cf2048f1..c25fbd486f5 100644
--- a/intern/cycles/kernel/film/passes.h
+++ b/intern/cycles/kernel/film/passes.h
@@ -42,8 +42,8 @@ ccl_device_forceinline void kernel_write_denoising_features_surface(
if (kernel_data.film.pass_denoising_depth != PASS_UNUSED) {
const float3 denoising_feature_throughput = INTEGRATOR_STATE(
state, path, denoising_feature_throughput);
- const float denoising_depth = ensure_finite(average(denoising_feature_throughput) *
- sd->ray_length);
+ const float depth = sd->ray_length - INTEGRATOR_STATE(state, ray, tmin);
+ const float denoising_depth = ensure_finite(average(denoising_feature_throughput) * depth);
kernel_write_pass_float(buffer + kernel_data.film.pass_denoising_depth, denoising_depth);
}
More information about the Bf-blender-cvs
mailing list