Releases: pmndrs/postprocessing
v6.27.0
Requires three ≥ 0.107.0 < 0.142.0
Changelog
Reorganized folders, shaders and enums. See 5ce3511.
Core
- Added
GaussKernel
.
Effects
- Added
SET
blend function and improved existing blend functions. See 100a981. - Added
LUT1DEffect
. See #371. Thanks @donmccurdy. - BrightnessContrastEffect
- Removed unnecessary clamp logic.
- ChromaticAberrationEffect
- Implemented radial modulation. See 966958a.
- BloomEffect, DepthOfFieldEffect, GodRaysEffect, OutlineEffect
- Reverted deprecation of
resolutionScale
constructor parameter. - Renamed
width
andheight
constructor parameters toresolutionX
andresolutionY
.
- Reverted deprecation of
Materials
- DepthOfFieldEffect
- The blur kernel will now be scaled according to
resolution.scale
for consistent results.
- The blur kernel will now be scaled according to
- Added
GaussianBlurMaterial
. - CopyMaterial
- Added support for dithering.
- KawaseBlurMaterial
- Removed support for dithering.
Passes
- EffectPass
- Changed visibility of
effects
back toprivate
. - Added protected
setEffects()
method. See #367. - Fixed a potential null error in
verifyResources
.
- Changed visibility of
- KawaseBlurPass
- The blur kernel will now be scaled according to
resolution.scale
for consistent results. - The last blur pass will now properly be performed on a downscaled buffer. See 6780dac.
- Changed default
kernelSize
toMEDIUM
.
- The blur kernel will now be scaled according to
- Added
GaussianBlurPass
. - DepthDownsamplingPass, DepthPass, KawaseBlurPass, LuminancePass, NormalPass
- Reverted deprecation of
resolutionScale
constructor parameter. - Renamed
width
andheight
constructor parameters toresolutionX
andresolutionY
.
- Reverted deprecation of
v6.26.4
Requires three ≥ 0.107.0 < 0.141.0
Changelog
Effects
- BloomEffect
- Fixed
luminanceSmoothing
constructor parameter. - Output will no longer be clamped to
[0.0, 1.0]
.
- Fixed
- GodRaysEffect
- Added
depthMaskMaterial
getter.
- Added
- SelectiveBloomEffect
- Fixed a bug that broke depth masking when the selection was empty.
- ToneMappingEffect
- Added accessors for
whitePoint
,middleGrey
andaverageLuminance
.
- Added accessors for
Materials
- DepthMaskMaterial
- Changed default value of
epsilon
to1e-4
.
- Changed default value of
Passes
- EffectPass
- Changed visibility of
effects
toprotected
. - Changed visibility of
updateMaterial
toprotected
. - Reverted deprecation of
dithering
.
- Changed visibility of
Special Thanks
Thanks @canadaduane for the continued support!
v6.26.3
v6.26.2
v6.26.1
Requires three ≥ 0.107.0 < 0.139.0
Changelog
Package
Added auto-generated types. Warning: expect errors. Thanks @superguigui.
Effects
- SMAAEffect
- The effect will now emit a
load
event when the internal textures have been loaded. - Fixed: preloaded images will now be picked up again, if provided.
- The effect will now emit a
v6.26.0
Requires three ≥ 0.107.0 < 0.139.0
Postprocessing has recently joined the Poimandres organization 🎉 The motivation behind this is to get more eyes on
postprocessing
and to ensure that the library continues to evolve as part of something bigger. Apart from that, nothing really changes though! — vanruesc
Changelog
Effects
- BlendMode
- Added
blendFunction
accessor. - Deprecated
getBlendFunction
andsetBlendFunction
.
- Added
- ColorAverageEffect & SepiaEffect
- Minor optimizations.
- DepthOfFieldEffect
- ScanlineEffect
- Added support for scrolling scanlines.
- Added
scrollSpeed
accessor.
- SMAAEffect
- It's no longer necessary to preload the search and area lookup textures. See 164a927.
- The constructor now accepts the named parameters
preset
,edgeDetectionMode
andpredicationMode
. The old signature is still supported.
- SSAOEffect
- Fixed a bug that prevented the effect from receiving a depth texture. See 5272f55.
- Added constructor parameters
worldDistanceThreshold
,worldDistanceFalloff
,worldProximityThreshold
andworldProximityFalloff
. See 397e287. - Added
luminanceInfluence
accessor. - Changed default of
minRadiusScale
constructor parameter to0.1
. - Made
depthAwareUpsampling
setting more robust. See e5f10f2.
Loaders
- Deprecated SMAAImageLoader.
Materials
- CircleOfConfusionMaterial
- SSAOMaterial
- Added
worldDistanceThreshold
,worldDistanceFalloff
,worldProximityThreshold
andworldProximityFalloff
accessors. See 6777946.
- Added
Special Thanks
Thanks @canadaduane for the financial support!
v6.25.0
Requires three ≥ 0.107.0 < 0.139.0
Attention: Inheritance of legacy classes such as DataTexture3D
is broken in three
r138 (mrdoob/three.js#23612) and will be fixed in r139 (mrdoob/three.js#23621). It's recommended to skip r138 if you use LUTEffect
.
Changelog
Following #349, the getter and setter methods that were introduced in 6.24.0
have been replaced by accessor properties. Methods of the form getFoo
and setFoo
are now properties of the form foo
with some exceptions listed below. For details see 387d5b0, f98d002, 276ee71, de14746, 07617b6, 87f1083, 55f5d39, d5c91e2.
Core
- EffectComposer
- It's no longer necessary to use
HalfFloatType
buffers for sRGB workflows. See 0bf4407. - Handled removal of
WebGLMultisampleRenderTarget
. - Timer auto reset behaviour will now be restored on reset.
- It's no longer necessary to use
- Selection
- Added
toggle
method.
- Added
Effects
- Effect
- Fixed unintentional disposal of
renderer
. See #353. - Deprecated
renderer
andsetRenderer
.
- Fixed unintentional disposal of
- ChromaticAberrationEffect
- The offset now respects the aspect ratio.
- GlitchEffect
- Deprecated
generatePerturbationMap
. - Replaced
getGlitchColumns
andsetGlitchColumns
withcolumns
accessor. - Replaced
getGlitchRatio
andsetGlitchRatio
withratio
accessor.
- Deprecated
- NoiseEffect
- Replaced
isPremultiplied
andsetPremultiplied
withpremultiply
accessor.
- Replaced
- OutlineEffect
- Added
patternScale
constructor parameter. - Added accessors
patternScale
,edgeStrength
,visibleEdgeColor
andhiddenEdgeColor
.
- Added
- ShockWaveEffect
- Added accessors
amplitude
,waveSize
andmaxRadius
.
- Added accessors
Materials
- AdaptiveLuminanceMaterial
- Removed
LinearMipMapLinearFilter
import and raised minimum version ofthree
to r107.
- Removed
- DepthComparisonMaterial
- Changed default depth packing strategy to
RGBADepthPacking
. See #351.
- Changed default depth packing strategy to
Passes
- Pass
- Fixed unintentional disposal of
renderer
. See #353. - Deprecated
renderer
andsetRenderer
.
- Fixed unintentional disposal of
- CopyPass
- Replaced
resize
withautoResize
.
- Replaced
- EffectMaterial
- Added
encodeOutput
andtime
accessors.
- Added
- LuminanceMaterial
- Replaced
getSmoothingFactor
andsetSmoothingFactor
withsmoothing
accessor.
- Replaced
- SMAAMaterial
- Replaced
setLookupTextures
withsearchTexture
andareaTexture
accessors. - Replaced
setCornerRoundingEnabled
withcornerDetection
accessor.
- Replaced
- SSAOMaterial
- Replaced
setDistanceCutoff
withdistanceThreshold
anddistanceFalloff
accessors. - Replaced
setProximityCutoff
withproximityThreshold
andproximityFalloff
accessors.
- Replaced
Textures
- LookupTexture3D
- Renamed to LookupTexture.
Miscellaneous
- Updated the manual.
v6.24.1
Requires three ≥ 0.102.0 < 0.138.0
Changelog
Package
- Changed main bundle name from
postprocessing.mjs
topostprocessing.esm.js
. See #346. - Exported
postprocessing.mjs
bundle aspostprocessing/module
. See 5293d46.
Core
- EffectComposer
- Prepared for removal of
WebGLMultisampleRenderTarget
. ignoreDepthForMultisampleCopy
will now be set tofalse
when using MSAA.
- Prepared for removal of
Effects
- GlitchEffect
- Added methods
getGlitchColumns
andsetGlitchColumns
.
- Added methods
- TextureEffect
- Improved UV transform handling.
Materials
- EffectMaterial
- Fixed potential breakage when using a dev version of
three
. See #345.
- Fixed potential breakage when using a dev version of
Miscellaneous
- Fixed a potential null pointer exception in the demo.
v6.24.0
Requires three ≥ 0.102.0 < 0.138.0
Changelog
Attention: The changes made in this release are currently being revised. It's recommended to not switch to the newly added methods just yet as there's a chance that they will partly be replaced with accessor properties. See #349.
This release adds accessor methods to consolidate the configuration API. It should no longer be necessary to access undocumented uniforms of materials or effects directly. The demo has not yet been updated to use the new methods because it will be replaced by the manual.
Package
- Changed ESM bundle name from
postprocessing.esm.js
topostprocessing.mjs
.
Core
- EffectComposer
- Selection
- Deprecated
exclusive
. - Added methods
isExclusive
,setExclusive
.
- Deprecated
- Resizer
- Renamed to
Resolution
. - Deprecated
resizable
,base
,target
,scale
. - Added methods
copy
,getWidth
,getHeight
,getScale
,setScale
,getBaseWidth
,setBaseWidth
,getBaseHeight
,setBaseHeight
,setBaseSize
,getPreferredWidth
,setPreferredWidth
,getPreferredHeight
,setPreferredHeight
,setPreferredSize
. - Resolution now dispatches "change" events when the base size or preferred size is changed.
- Renamed to
Effects
- BlendMode
- Changed visibility of
opacity
to private. - Added methods
getOpacity
,setOpacity
.
- Changed visibility of
- Effect
- Changed visibility of
name
to private. - Changed visibility of
defines
,uniforms
,extensions
andblendMode
to protected. - Added methods
getName
,getDefines
,getUniforms
,getExtensions
,getBlendMode
,setRenderer
.
- Changed visibility of
- BloomEffect
- Deprecated
intensity
,luminancePass
,luminanceMaterial
,blurPass
,texture
,resolution
. - Added methods
getBlurPass
,getIntensity
,setIntensity
,getLuminancePass
,getLuminanceMaterial
,getBlurPass
,getTexture
,getResolution
.
- Deprecated
- BrightnessContrastEffect
- Added methods
getBrightness
,setBrightness
,getContrast
,setContrast
.
- Added methods
- ChromaticAberrationEffect
- Deprecated
offset
. - Added methods
getOffset
,setOffset
. - Simplified the shader by always handling alpha.
- Deprecated
- DepthEffect
- Deprecated
inverted
. - Added methods
isInverted
setInverted
.
- Deprecated
- DepthOfFieldEffect
- Deprecated
bokehScale
,blurPass
,target
,circleOfConfusionMaterial
,resolution
. - Added methods
getBokehScale
,setBokehScale
,getBlurPass
,getTarget
,setTarget
,getCircleOfConfusionMaterial
andgetResolution
.
- Deprecated
- DotScreenEffect
- Added
getAngle
method .
- Added
- GodRaysEffect
- Deprecated
blur
,samples
. - Added methods
getSamples
,setSamples
.
- Deprecated
- OutlineEffect
- Deprecated
blur
,xRay
, - Added methods
isXRayEnabled
,setXRayEnabled
- Deprecated
- GlitchEffect
- Deprecated
delay
,duration
,strength
,mode
,ratio
,chromaticAberrationOffset
,active
. - Added methods
getMinDelay
,setMinDelay
,getMaxDelay
,setMaxDelay
,getMinDuration
,setMinDuration
,getMaxDuration
,setMaxDuration
,getMinStrength
,setMinStrength
,getMaxStrength
,setMaxStrength
,getMode
,setMode
,isActive
,getGlitchRatio
,setGlitchRatio
,getChromaticAberrationOffset
,setChromaticAberrationOffset
. - The generated perturbation map will now be disposed automatically.
- Renamed uniform
seed
toseeds
.
- Deprecated
- GodRaysEffect
- Deprecated
blurPass
,texture
,resolution
,godRaysMaterial
. - Added methods
getBlurPass
,getGodRaysMaterial
,getResolution
,getTexture
.
- Deprecated
- HueSaturationEffect
- Added methods
getSaturation
,setSaturation
,getHue
.
- Added methods
- NoiseEffect
- Deprecated
premultiply
. - Added methods
isPremultiplied
,setPremultiplied
.
- Deprecated
- OutlineEffect
- Deprecated
blurPass
,selection
,pulseSpeed
,resolution
. - Added methods
getBlurPass
,getSelection
,getPulseSpeed
,setPulseSpeed
,getResolution
.
- Deprecated
- SelectiveBloomEffect
- Deprecated
selection
,depthMaskMaterial
,inverted
,ignoreBackground
. - Added methods
getSelection
,getDepthMaskMaterial
,isInverted
,setInverted
,isBackgroundDisabled
,setBackgroundDisabled
.
- Deprecated
- SepiaEffect
- Added methods
getIntensity
,setIntensity
.
- Added methods
- ShockWaveEffect
- Deprecated
epicenter
,speed
. - Added methods
getPosition
,setPosition
,getSpeed
,setSpeed
.
- Deprecated
- SMAAEffect
- Deprecated
edgeDetectionMaterial
,weightsMaterial
. - Added methods
getEdgeDetectionMaterial
,getWeightsMaterial
,getEdgesTexture
,getWeightsTexture
.
- Deprecated
- SSAOEffect
- Deprecated
resolution
,distanceScaling
,samples
,rings
,color
,depthAwareUpsampling
,setDistanceCutoff
,setProximityCutoff
. - Added methods
getResolution
,isDepthAwareUpsamplingEnabled
,setDepthAwareUpsamplingEnabled
,getColor
,setColor
.
- Deprecated
- TextureEffect
- Deprecated
texture
,uvTransform
. - Added methods
getTexture
setTexture
. - UV transformations on the texture will now always be respected.
- Deprecated
- ToneMappingEffect
- Removed
HalfFloat
requirement. See 80089eb. - Deprecated
resolution
,mode
,adaptationRate
. - Added methods
getResolution
,setResolution
,getMode
,setMode
.
- Removed
- VignetteEffect
- Deprecated
eskil
. - Added
VignetteTechnique
enum. - Added methods
getTechnique
,setTechnique
,getOffset
,setOffset
,getDarkness
,setDarkness
.
- Deprecated
Loaders
- SMAAImageGenerator
- Deprecated
disableCache
. - Added
setCacheEnabled
method.
- Deprecated
Materials
- AdaptiveLuminanceMaterial
- Added methods
setLuminanceBuffer0
,setLuminanceBuffer1
,setMipLevel1x1
,setDeltaTime
,getAdaptationRate
,setAdaptationRate
,getMinLuminance
,setMinLuminance
.
- Added methods
- BokehMaterial
- Deprecated
setTexelSize
. - Added methods
setInputBuffer
,setCoCBuffer
,getScale
,setScale
,setSize
.
- Deprecated
- CircleOfConfusionMaterial, DepthDownsamplingMaterial, EdgeDetectionMaterial, EffectMaterial, SSAOMaterial
- Deprecated
depthPacking
. - Added
setDepthBuffer
method.
- Deprecated
- CircleOfConfusionMaterial
- Added methods
getFocusDistance
,setFocusDistance
,getFocalLength
,setFocalLength
.
- Added methods
- CopyMaterial
- Added methods
setInputBuffer
,getOpacity
,setOpacity
.
- Added methods
- ConvolutionMaterial
- Renamed to
KawaseBlurMaterial
. - Added methods
setInputBuffer
,getScale
,setScale
,setKernel
.
- Renamed to
- DepthComparisonMaterial, DepthCopyMaterial
- Added
setDepthBuffer
method.
- Added
- DepthCopyMaterial
- Added methods
getTexelPosition
,setTexelPosition
.
- Added methods
- DepthDownsamplingMaterial
- Added
setNormalBuffer
method.
- Added
- DepthMaskMaterial
- Deprecated
keepFar
. - Added methods
getDepthTestStrategy
,setDepthTestStrategy
,setDepthBuffer0
andsetDepthBuffer1
. - Created
DepthTestStrategy
enum. - Removed uniforms
bias0
andbias1
.
- Deprecated
- EdgeDetectionMaterial
- Added methods
getEdgeDetectionMode
,setEdgeDetectionMode
,getLocalContrastAdaptationFactor
,getEdgeDetectionThreshold
,getPredicationMode
,getPredicationThreshold
,getPredicationScale
,getPredicationStrength
.
- Added methods
- EffectMaterial
Section
enum is now a static class member.- Added methods
setInputBuffer
,setExtensions
,isOutputEncodingEnabled
,setOutputEncodingEnabled
andsetDeltaTime
.
- GodRaysMaterial
- Deprecated
samples
- Added methods
getSamples
,setSamples
,getDensity
,setDensity
,getDecay
,setDecay
,getWeight
,setWeight
,getExposure
,setExposure
,getMaxIntensity
,setMaxIntensity
,setInputBuffer
,getLightPosition
andsetLightPosition
.
- Deprecated
- LuminanceMaterial, MaskMaterial, OutlineMaterial, SMAAWeightsMaterial.
- Added
setInputBuffer
method.
- Added
- LuminanceMaterial
- Deprecated
colorOutput
,threshold
,smoothing
,useThreshold
anduseRange
. - Added methods
isColorOutputEnabled
,setColorOutputEnabled
,getThreshold
,setThreshold
.getSmoothingFactor
,setSmoothingFactor
,getLuminanceRange
,setLuminanceRange
.
- Deprecated
- MaskMaterial
- Deprecated
colorChannel
,maskFunction
,maskTexture
,inverted
,strength
. - Added methods
getColorChannel
,setColorChannel
,getMaskFunction
,setMaskFunction
,setMaskTexture
,isInverted
,setInverted
,getStrength
,setStrength
.
- Deprecated
- SMAAWeightsMaterial
- Deprecated
diagonalDetection
,cornerRounding
. - Added methods
isDiagonalDetectionEnabled
,setDiagonalDetectionEnabled
,isCornerRoundingEnabled
,setCornerRoundingEnabled
,setLookupTextures
.
- Deprecated
- SSAOMaterial
- Deprecated
setTexelSize
. - Added methods
setSize
,setNormalBuffer
,setDepthBuffer
,setNormalDepthBuffer
,setNoiseTexture
,getSamples
,setSamples
,getRings
,setRings
,getIntensity
,setIntensity
,getFade
,setFade
,getBias
,setBias
,getMinRadiusScale
,setMinRadiusScale
,getRadius
,setRadius
,isDistanceScalingEnabled
,setDistanceScalingEnabled
,setDistanceCutoff
,setProximityCutoff
.
- Deprecated
Passes
- Pass
- Added
setRenderer
method.
- Added
- AdaptiveLuminancePass
- Deprecated
adaptationRate
,texture
,mipLevel1x1
. - Added
getTexture
method.
- Deprecated
- BlurPass
- Renamed to
KawaseBlurPass
. - Deprecate
resolution
. - Added
getResolution
method.
- Renamed to
- ClearPass
- Deprecated
color
,depth
,stencil
,overrideColor
,overrideAlpha
. - Added methods
setClearFlags
,getOverrideClearColor
,setOverrideClearColor
,getOverrideClearAlpha
,setOverrideClearAlpha
.
- Deprecated
- DepthSavePass
- Renamed to
DepthCopyPass
. - Maximum depth will now be preserved. See #340.
- Deprecated
texture
,depthPacking
. - Added methods
getTexture
,setDepthBuffer
,getDepthPacking
.
- Renamed to
- DepthPass, DepthDownsam...