Skip to content

v3.0.0

Compare
Choose a tag to compare
@vanruesc vanruesc released this 07 Oct 21:33

Requires three.js 0.87.x

Changelog

  • EffectComposer
    • Replaced internal pixel ratio calculations with getDrawingBufferSize calls.
  • Passes
    • The SMAAPass constructor now expects two parameters: searchImage, areaImage. The user must preload these images asynchronously by using the base64-encoded image data urls SMAAPass.searchImagaDataUrl and SMAAPass.areaImageDataUrl. Please refer to the SMAADemo 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.
  • 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.