Skip to content

v5.0.0

Choose a tag to compare

@vanruesc vanruesc released this 28 Sep 19:31

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.