From 8b9b8f1bf494d6d9a6e1fe65bdc8cdf1264f8a37 Mon Sep 17 00:00:00 2001 From: Thierry CANTENOT Date: Fri, 11 Oct 2024 18:04:58 +0200 Subject: [PATCH] FilterBlurMask pass: fix "is not center pixel" test --- src/core/src/render_techniques/gi10/gi10.comp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/src/render_techniques/gi10/gi10.comp b/src/core/src/render_techniques/gi10/gi10.comp index aa19c6b8..29003deb 100644 --- a/src/core/src/render_techniques/gi10/gi10.comp +++ b/src/core/src/render_techniques/gi10/gi10.comp @@ -3705,7 +3705,7 @@ void FilterBlurMask(in uint2 did : SV_DispatchThreadID, in uint2 lid : SV_GroupT { for (int x = -kGIDenoiser_BlurRadius; x <= kGIDenoiser_BlurRadius; ++x) { - if (x != 0 && y != 0) // center element was already processed + if(x != 0 || y != 0) // center element was already processed { float s = GIDenoiser_TapBlurMask(tile_pos + float2(x, y)); float d = sqrt(float(x * x + y * y));