Skip to content

v4.8.0

Choose a tag to compare

@vanruesc vanruesc released this 30 Jun 22:27

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.