Skip to content

Commit

Permalink
fix: code format
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuxudong committed Jan 16, 2025
1 parent 4d006a5 commit 44d02e3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/core/src/postProcess/PostProcessManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}

Expand Down

0 comments on commit 44d02e3

Please sign in to comment.