npm / @react-three/postprocessing
@react-three/postprocessing
What changed in @react-three/postprocessing 3, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
10 breaking1 deprecations19 new APIs and options2 performance7 behavior and defaults2 tooling29 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@react-three/postprocessing 370 changes
Breaking changes 10
N8AO now takes camera and scene from EffectComposer instead of the canvas defaults.
Lowers default multisampling from 8 to 4; pass multisampling={8} to restore the old default.
blendFunction now applies instead of being ignored and always set to ADD.
Requires exactly one of textureSrc or texture; passing both or neither is a type error.
blendFunction and opacity props are removed because they were no-ops for this mainUv-only shader.
When resolutionScale is not set on SSAO, it now falls back to the parent EffectComposer's resolutionScale instead of 1.
postprocessing moved from a pinned dependency to a peer dependency range of ^6.36.0.
The @react-three/fiber peer dependency floor is now >=9.7.0.
Effect components now accept ref as a plain optional prop instead of using forwardRef.
The three peer dependency floor is now >= 0.182.0.
Deprecations 1
Warns in the console when mounted without EffectComposer autoClear={false}, which is required for its internal extra pass to produce correct occlusion.
New APIs and options 19
Adds an opacity prop.
Exports GodRaysProps.
Adds an RGB halftone effect ported from three.js' HalftoneShader.
Adds a painterly filter effect.
Adds an effect that wraps postprocessing's LensDistortionEffect.
Exports LensFlareProps.
Adds a linocut print effect ported from TresJS post-processing.
Adds an exclude prop to keep a subtree out of an enabled ancestor's selection.
Adds a sharpening effect.
Exports SSAOProps.
The effect-wrapping factory becomes public for wrapping zero-argument-constructible postprocessing effect classes.
New component mounts a DepthPickingPass and exposes readDepth via ref for reading world-space positions from the depth buffer.
Adds a construction-time autoRenderToScreen prop that defaults to true.
Adds mergeMode with auto, all, and none options; auto merges effects into as few passes as possible while allowing at most one convolution effect per pass.
Adds a renderPass prop so consumers can supply their own scene/camera render pass.
New component groups effects into one EffectPass and provides an enabled toggle backed by a shared trailing CopyPass.
Adds an enabled prop backed by the shared trailing-CopyPass safety net.
New hook converts a screen position into a world-space point on demand, auto-detecting the composer's camera inside EffectComposer and accepting a camera override outside it.
Outline and SelectiveBloom selection synchronization now uses a shared hook, preventing the selection effect from rerunning on every render due to an unstable props object.
Performance 2
Effects requiring constructor arguments now apply live props through useLiveDefaults instead of reconstructing the whole effect on every change.
Passes are rebuilt only when the resolved effect/pass list changes, rather than on every unrelated React render.
Behavior and default changes 7
color now accepts any color representation, not just a Color.
Changing depthTexture now updates the existing effect in place instead of reconstructing the effect, render targets, and passes.
Effects with zero-argument-constructible postprocessing classes now update live props on a stable effect instance instead of reconstructing it on changes.
lensPosition now accepts ReactThreeFiber.Vector3, including a tuple or a single number, as well as a Vector3 instance.
visibleEdgeColor and hiddenEdgeColor now accept ColorRepresentation values, including numbers, strings, and Color instances.
position now accepts ReactThreeFiber.Vector3, including a tuple or a single number, as well as a Vector3 instance.
SSAO props, including color, intensity, radius, and samples, now apply live when changed.
Tooling 2
Its live props are now typed; they already worked at runtime.
The blendFunction prop is now typed.
Fixes and other changes 29
Recreating the composer no longer disposes passes it reuses, including EffectGroup, N8AO and passes rendered by the developer.
EffectGroup now follows the EffectComposer's camera and scene when they change, so depth-based effects use the current camera's near/far.
Disabling a Select no longer drops objects another Select still selects.
A pre-loaded texture no longer requires textureSrc or triggers a load.
The composer and its passes now resize when only the pixel ratio changes, following the drawing buffer size.
In auto mode, mainUv effects are kept separate from convolution effects, preventing EffectPass from throwing at render time.
Loosens the peer dependency constraint for react that was accidentally over-constrained in 3.1.0.
Loosens the peer dependency constraint for three that was accidentally over-constrained in 3.1.0.
Composer sizing now reads gl.getSize() directly, avoiding missed or stale resizes when nested in drei View.
The opacity prop now works; it was previously silently inert.
The tuple offset prop is now correctly coerced using a manual construct/dispose pattern.
EffectComposer creation now uses a proper effect lifecycle, avoiding reliance on useMemo cleanup that React may discard.
multisampling is now wired up as a live constructor option.
patternScale is now wired up as a live constructor option.
resolutionScale is now wired up as a live constructor option.
resolutionX is now wired up as a live constructor option.
resolutionY is now wired up as a live constructor option.
All primitive-based effects now dispose themselves.
The renderer's autoClear setting is restored on unmount instead of being left force-set.
The renderer's toneMapping setting is restored on unmount instead of being left force-set.
Selection no longer enters an infinite update loop; it diffs newly claimed and released objects against previously claimed objects.
Object detection now recognizes Mesh, Line, and Points subclasses, so custom mesh subclasses can be selected.
Light refs that have not attached yet are resolved and filtered instead of causing addLight or removeLight to crash on a null object.
levels is now wired up as a live constructor option.
radius is now wired up as a live constructor option.
resolutionScale is now wired up as a live constructor option.
resolutionX is now wired up as a live constructor option.
resolutionY is now wired up as a live constructor option.
Adds support for React 19.