Skip to content

Releases: pmndrs/postprocessing

v5.1.0

31 Oct 11:33
Compare
Choose a tag to compare

Requires three ≥ 0.87.0 ≤ 0.97.0

🎃 Halloween Release 👻

Changelog

Passes

  • Added NormalPass for convenient scene normal rendering.
  • Added DepthPass for convenient depth rendering.

Effects

  • Added SSAOEffect 🔅
  • Effect
    • Removed an incorrect depth conversion. See 6af42d6. 💀
    • Effects with the DEPTH EffectAttribute no longer have to use the depth information in their main fragment shader.
    • Added Effect.setDepthTexture(texture, depthPacking). Effects may override this method if they require direct access to the depth texture that is bound to the associated EffectPass.
  • Improved ChromaticAberrationEffect, SMAAEffect, GlitchEffect and OutlineEffect.

Materials

  • EffectMaterial
    • Renamed setResolution to setSize.

v5.0.0

28 Sep 19:31
Compare
Choose a tag to compare

Requires three ≥ 0.87.0 ≤ 0.97.0

Changelog

EffectComposer

Removed the depthTexture constructor option. A depth texture will now be created automatically when a pass is added that relies on it. The depth texture mechanism can be controlled via the new Pass.needsDepthTexture flag.

Passes

  • ShaderPass
    • Changed default input uniform name to "inputBuffer".
  • Pass
    • Removed material getter and setter.
    • Added needsDepthTexture flag.
    • Added getDepthTexture().
    • Added setDepthTexture(depthTexture, depthPacking).
  • Added EffectPass

The EffectPass creates a compound fullscreen shader to render many effects with one render operation. It replaces all fullscreen passes except for ShaderPass.

If you did new BloomPass() before, you now do new EffectPass(camera, new BloomEffect())

Effects

  • Added Effect and converted most passes into effects.
  • Added BlendMode and BlendFunction.
  • OutlineEffect
    • Removed alphaBlending option. Use BlendFunction.ALPHA for dark outlines instead.
  • Split DotScreenPass up into
    • DotScreenEffect
    • ColorAverageEffect
  • Split FilmPass up into
    • GridEffect
    • NoiseEffect
    • ScanlineEffect
    • SepiaEffect
    • VignetteEffect
  • Added BrigtnessContrastEffect.
  • Added ChromaticAberrationEffect.
  • Added DepthEffect (mainly for debugging).
  • Added GammaCorrectionEffect.
  • Added HueSaturationEffect.

Materials

  • Renamed AdaptiveLuminosityMaterial to AdaptiveLuminanceMaterial.
  • Renamed LuminosityMaterial to LuminanceMaterial.

v4.10.0

31 Aug 13:05
Compare
Choose a tag to compare

Requires three ≥ 0.89.0 ≤ 0.96.0

v4.9.0

02 Aug 14:18
Compare
Choose a tag to compare

Requires three ≥ 0.89.0 ≤ 0.95.0

v4.8.2

18 Jul 19:54
Compare
Choose a tag to compare

Requires three ≥ 0.89.0 ≤ 0.94.0

Changelog

  • OutlinePass
    • Fixed an undefined reference. See #88.
  • Miscellaneous
    • Removed advisory engines field from package.json.

v4.8.1

01 Jul 18:29
Compare
Choose a tag to compare

Requires three.js ≥ 0.89.0 ≤ 0.94.0

Fixed build/postprocessing.js bundle. (Transpilation was skipped last time.)

v4.8.0

30 Jun 22:27
Compare
Choose a tag to compare

Requires three.js ≥ 0.89.0 ≤ 0.94.0

Changelog

  • Pass

    • Added getFullscreenMaterial() and setFullscreenMaterial(Material). See 9b0c2c1.

    • The getter material has been deprecated in favour of getFullscreenMaterial().

    • The setter material has been deprecated in favour of setFullscreenMaterial(Material).

    • Changed the constructor signature to (name: String, scene: Scene, camera: Camera).

      These changes are to avoid unexpected property name collisions in custom passes. Additionally, the screen quad will now lazily be created once a fullscreen material is assigned and is no longer part of the constructor.

  • BloomPass, BlurPass, FilmPass, GodRaysPass, OutlinePass

    • The user no longer has to call EffectComposer.setSize() after modifying resolution-dependent values.
  • BlurPass

    • Added getResolutionScale() and setResolutionScale(Material).
  • BloomPass, GodRaysPass, OutlinePass

    • Added getResolutionScale() and setResolutionScale(Material).
    • The getter resolutionScale has been deprecated in favour of getResolutionScale().
    • The setter resolutionScale has been deprecated in favour of setResolutionScale(Number).
  • FilmPass

    • Added getScanlineDensity() and setScanlineDensity(Number).
    • Added getGridScale() and setGridScale(Number).
    • Added getGridLineWidth() and setGridLineWidth(Number).
  • Miscellaneous

    • Revised the build setup again. Readded the usual postprocessing.js and postprocessing.min.js bundles.

v4.7.0

29 Jun 23:58
Compare
Choose a tag to compare

Requires three.js ≥ 0.89.0 ≤ 0.94.0

v4.6.0

31 May 13:51
Compare
Choose a tag to compare

Requires three.js ≥ 0.89.0 ≤ 0.93.0

Changelog

  • package.json
    • Added sideEffects flag. This might reduce the final bundle size when used with Webpack.

v4.5.0

09 May 22:09
Compare
Choose a tag to compare

Requires three.js ≥ 0.89.0 ≤ 0.92.0

Changelog

  • Pass
    • The new default value of needsSwap is true. See #76.
    • The name of a pass should now be set via super(name).
    • The fullscreen material can now be set via Pass.material. Pass.quad has been declared private.
  • SMAAPass
    • Fixed a bug where the antialising effect would break if the clear color of the renderer wasn't black. See #80.
  • TexturePass
    • Use CombineMaterial instead of CopyMaterial. See #81.
    • Added opacity options for the destination and source colors (input buffer and texture).
  • BloomPass, GodRaysPass, OutlinePass
    • Added a blend option to prevent the final overlay texture from being applied to the input buffer.