v5.0.0
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
materialgetter and setter. - Added
needsDepthTextureflag. - Added
getDepthTexture(). - Added
setDepthTexture(depthTexture, depthPacking).
- Removed
- 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
Effectand converted most passes into effects. - Added
BlendModeandBlendFunction. - OutlineEffect
- Removed
alphaBlendingoption. UseBlendFunction.ALPHAfor dark outlines instead.
- Removed
- Split
DotScreenPassup into- DotScreenEffect
- ColorAverageEffect
- Split
FilmPassup into- GridEffect
- NoiseEffect
- ScanlineEffect
- SepiaEffect
- VignetteEffect
- Added
BrigtnessContrastEffect. - Added
ChromaticAberrationEffect. - Added
DepthEffect(mainly for debugging). - Added
GammaCorrectionEffect. - Added
HueSaturationEffect.
Materials
- Renamed
AdaptiveLuminosityMaterialtoAdaptiveLuminanceMaterial. - Renamed
LuminosityMaterialtoLuminanceMaterial.