unstale

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

@unstale/cli on npm

@react-three/postprocessing 370 changes

Breaking changes 10

  • N8AO now takes camera and scene from EffectComposer instead of the canvas defaults.

    3.2.1release notes

  • Lowers default multisampling from 8 to 4; pass multisampling={8} to restore the old default.

    3.2.0release notes

  • blendFunction now applies instead of being ignored and always set to ADD.

    3.2.0release notes

  • Requires exactly one of textureSrc or texture; passing both or neither is a type error.

    3.2.0release notes

  • blendFunction and opacity props are removed because they were no-ops for this mainUv-only shader.

    3.1.0release notes

  • When resolutionScale is not set on SSAO, it now falls back to the parent EffectComposer's resolutionScale instead of 1.

    3.1.0release notes

  • postprocessing moved from a pinned dependency to a peer dependency range of ^6.36.0.

    3.0.5release notes

  • The @react-three/fiber peer dependency floor is now >=9.7.0.

    3.0.5release notes

  • Effect components now accept ref as a plain optional prop instead of using forwardRef.

    3.0.5release notes

  • The three peer dependency floor is now >= 0.182.0.

    3.0.5release notes

Deprecations 1

  • Warns in the console when mounted without EffectComposer autoClear={false}, which is required for its internal extra pass to produce correct occlusion.

    3.1.0release notes

New APIs and options 19

  • Adds an opacity prop.

    3.2.0release notes

  • Exports GodRaysProps.

    3.2.0release notes

  • Adds an RGB halftone effect ported from three.js' HalftoneShader.

    3.2.0release notes

  • Adds a painterly filter effect.

    3.2.0release notes

  • Adds an effect that wraps postprocessing's LensDistortionEffect.

    3.2.0release notes

  • Exports LensFlareProps.

    3.2.0release notes

  • Adds a linocut print effect ported from TresJS post-processing.

    3.2.0release notes

  • Adds an exclude prop to keep a subtree out of an enabled ancestor's selection.

    3.2.0release notes

  • Adds a sharpening effect.

    3.2.0release notes

  • Exports SSAOProps.

    3.2.0release notes

  • The effect-wrapping factory becomes public for wrapping zero-argument-constructible postprocessing effect classes.

    3.1.0release notes

  • New component mounts a DepthPickingPass and exposes readDepth via ref for reading world-space positions from the depth buffer.

    3.1.0release notes

  • Adds a construction-time autoRenderToScreen prop that defaults to true.

    3.1.0release notes

  • 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.

    3.1.0release notes

  • Adds a renderPass prop so consumers can supply their own scene/camera render pass.

    3.1.0release notes

  • New component groups effects into one EffectPass and provides an enabled toggle backed by a shared trailing CopyPass.

    3.1.0release notes

  • Adds an enabled prop backed by the shared trailing-CopyPass safety net.

    3.1.0release notes

  • 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.

    3.1.0release notes

  • 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.

    3.0.5release notes

Performance 2

  • Effects requiring constructor arguments now apply live props through useLiveDefaults instead of reconstructing the whole effect on every change.

    3.1.0release notes

  • Passes are rebuilt only when the resolved effect/pass list changes, rather than on every unrelated React render.

    3.1.0release notes

Behavior and default changes 7

  • color now accepts any color representation, not just a Color.

    3.2.0release notes

  • Changing depthTexture now updates the existing effect in place instead of reconstructing the effect, render targets, and passes.

    3.1.0release notes

  • Effects with zero-argument-constructible postprocessing classes now update live props on a stable effect instance instead of reconstructing it on changes.

    3.1.0release notes

  • lensPosition now accepts ReactThreeFiber.Vector3, including a tuple or a single number, as well as a Vector3 instance.

    3.1.0release notes

  • visibleEdgeColor and hiddenEdgeColor now accept ColorRepresentation values, including numbers, strings, and Color instances.

    3.1.0release notes

  • position now accepts ReactThreeFiber.Vector3, including a tuple or a single number, as well as a Vector3 instance.

    3.1.0release notes

  • SSAO props, including color, intensity, radius, and samples, now apply live when changed.

    3.1.0release notes

Tooling 2

  • Its live props are now typed; they already worked at runtime.

    3.2.0release notes

  • The blendFunction prop is now typed.

    3.2.0release notes

Fixes and other changes 29

  • Recreating the composer no longer disposes passes it reuses, including EffectGroup, N8AO and passes rendered by the developer.

    3.2.2release notes

  • EffectGroup now follows the EffectComposer's camera and scene when they change, so depth-based effects use the current camera's near/far.

    3.2.2release notes

  • Disabling a Select no longer drops objects another Select still selects.

    3.2.0release notes

  • A pre-loaded texture no longer requires textureSrc or triggers a load.

    3.2.0release notes

  • The composer and its passes now resize when only the pixel ratio changes, following the drawing buffer size.

    3.1.3release notes

  • In auto mode, mainUv effects are kept separate from convolution effects, preventing EffectPass from throwing at render time.

    3.1.2release notes

  • Loosens the peer dependency constraint for react that was accidentally over-constrained in 3.1.0.

    3.1.1release notes

  • Loosens the peer dependency constraint for three that was accidentally over-constrained in 3.1.0.

    3.1.1release notes

  • Composer sizing now reads gl.getSize() directly, avoiding missed or stale resizes when nested in drei View.

    3.1.0release notes

  • The opacity prop now works; it was previously silently inert.

    3.1.0release notes

  • The tuple offset prop is now correctly coerced using a manual construct/dispose pattern.

    3.0.5release notes

  • EffectComposer creation now uses a proper effect lifecycle, avoiding reliance on useMemo cleanup that React may discard.

    3.0.5release notes

  • multisampling is now wired up as a live constructor option.

    3.0.5release notes

  • patternScale is now wired up as a live constructor option.

    3.0.5release notes

  • resolutionScale is now wired up as a live constructor option.

    3.0.5release notes

  • resolutionX is now wired up as a live constructor option.

    3.0.5release notes

  • resolutionY is now wired up as a live constructor option.

    3.0.5release notes

  • All primitive-based effects now dispose themselves.

    3.0.5release notes

  • The renderer's autoClear setting is restored on unmount instead of being left force-set.

    3.0.5release notes

  • The renderer's toneMapping setting is restored on unmount instead of being left force-set.

    3.0.5release notes

  • Selection no longer enters an infinite update loop; it diffs newly claimed and released objects against previously claimed objects.

    3.0.5release notes

  • Object detection now recognizes Mesh, Line, and Points subclasses, so custom mesh subclasses can be selected.

    3.0.5release notes

  • Light refs that have not attached yet are resolved and filtered instead of causing addLight or removeLight to crash on a null object.

    3.0.5release notes

  • levels is now wired up as a live constructor option.

    3.0.5release notes

  • radius is now wired up as a live constructor option.

    3.0.5release notes

  • resolutionScale is now wired up as a live constructor option.

    3.0.5release notes

  • resolutionX is now wired up as a live constructor option.

    3.0.5release notes

  • resolutionY is now wired up as a live constructor option.

    3.0.5release notes

  • Adds support for React 19.

    3.0.0release notes