From 1e3ac982cf6a3adb75719d9bb7e0b38424262a3f Mon Sep 17 00:00:00 2001 From: Riho Kirss Date: Sun, 6 Sep 2026 12:05:02 +0300 Subject: [PATCH] fix(postproduction): keep MSAA when postproduction is enabled EffectComposer allocates its ping-pong render targets with samples = 0, so enabling PostproductionRenderer dropped the hardware MSAA of the default framebuffer and every geometry edge came out aliased (SMAA only partly recovers it). Give the composer targets a sample count, exposed as Postproduction.samples (default 4, clamped to capabilities.maxSamples, 0 restores the previous behaviour), and add a slider to the example. Fixes #793 --- .../core/PostproductionRenderer/example.ts | 9 +++++++ .../core/PostproductionRenderer/src/index.ts | 27 +++++++++++++++++++ 2 files changed, 36 insertions(+) diff --git a/packages/front/src/core/PostproductionRenderer/example.ts b/packages/front/src/core/PostproductionRenderer/example.ts index b8f50bb6a..d354c3145 100644 --- a/packages/front/src/core/PostproductionRenderer/example.ts +++ b/packages/front/src/core/PostproductionRenderer/example.ts @@ -266,6 +266,15 @@ const panel = BUI.Component.create(() => { }}"> + + +