v4.8.0
Requires three.js ≥ 0.89.0 ≤ 0.94.0
Changelog
-
Pass
-
Added
getFullscreenMaterial()andsetFullscreenMaterial(Material). See 9b0c2c1. -
The getter
materialhas been deprecated in favour ofgetFullscreenMaterial(). -
The setter
materialhas been deprecated in favour ofsetFullscreenMaterial(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.
- The user no longer has to call
-
BlurPass
- Added
getResolutionScale()andsetResolutionScale(Material).
- Added
-
BloomPass, GodRaysPass, OutlinePass
- Added
getResolutionScale()andsetResolutionScale(Material). - The getter
resolutionScalehas been deprecated in favour ofgetResolutionScale(). - The setter
resolutionScalehas been deprecated in favour ofsetResolutionScale(Number).
- Added
-
FilmPass
- Added
getScanlineDensity()andsetScanlineDensity(Number). - Added
getGridScale()andsetGridScale(Number). - Added
getGridLineWidth()andsetGridLineWidth(Number).
- Added
-
Miscellaneous
- Revised the build setup again. Readded the usual
postprocessing.jsandpostprocessing.min.jsbundles.
- Revised the build setup again. Readded the usual