v3.0.0
Requires three.js 0.87.x
Changelog
- EffectComposer
- Replaced internal pixel ratio calculations with
getDrawingBufferSize
calls.
- Replaced internal pixel ratio calculations with
- Passes
- The
SMAAPass
constructor now expects two parameters:searchImage, areaImage
. The user must preload these images asynchronously by using the base64-encoded image data urlsSMAAPass.searchImagaDataUrl
andSMAAPass.areaImageDataUrl
. Please refer to theSMAADemo
for an example setup.
Previously, the loading process of these images was unsafe (see Should setting an image src to data URL be available immediately? and the related issue report #62). - Removed
DepthPass
. There was no real purpose behind this pass. - Added Depth of Field setting to
BokehPass
. This lets the user define an area in front of and behind the focus point that remains sharp. See 99519cb.
- The
- Materials
- Removed
DepthMaterial
. This material was not useful. - Use
linearToRelativeLuminance
function from common. See 220d490. - Ported SMAA image generation scripts for reference purposes. See 18968fb.
- Replaced the SMAA area look-up image. The previous area image did not match the area image from the official SMAA project.
- Removed