From 44d02e3e06c64e27de3ac2b3bfe22fc6d71b2504 Mon Sep 17 00:00:00 2001 From: zhuxudong Date: Thu, 16 Jan 2025 16:45:51 +0800 Subject: [PATCH] fix: code format --- packages/core/src/postProcess/PostProcessManager.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/core/src/postProcess/PostProcessManager.ts b/packages/core/src/postProcess/PostProcessManager.ts index bd252f646b..7e1b06c681 100644 --- a/packages/core/src/postProcess/PostProcessManager.ts +++ b/packages/core/src/postProcess/PostProcessManager.ts @@ -106,8 +106,11 @@ export class PostProcessManager { } // Post process has no influence, ignore it - if (closestDistance <= blendDistance && blendDistance > 0) { - interpFactor = 1 - closestDistance / blendDistance; + if (closestDistance <= blendDistance) { + interpFactor = 1; + if (blendDistance > 0) { + interpFactor = 1 - closestDistance / blendDistance; + } } }