Releases: daprice/Variablur
Releases · daprice/Variablur
v2.0.0
- Blur radius adjusted so that areas where the mask is fully opaque will match SwiftUI’s built-in
blur(radius:)effect. If you were using Variablur 1.x, you’ll need to divide your radius by 2 to get the same behavior in 2.0. - The standard deviation of the gaussian function used within the shader was adjusted to fit more of the bell curve within the sampling area, making the blur smoother.
- A new
normalizeEdgesparameter lets you choose whether the edges of the view’s frame will be blurred (normalizeEdges: true, same as the old behavior) or not (normalizeEdges: false). If the view you apply the effect to is opaque, normalizing the edges will prevent any of the background behind it from showing through. This is similar to settingopaque: trueon SwiftUI’s built inblureffect.
v1.1.0
- Improve documentation.
- Use UV coordinates for sampling the mask image; the mask no longer has to be the same size as the view the effect is applied to.
- Add a version of the modifier that takes an
Imagedirectly. - Note: the
prioritizeVerticalPassparameter has been renamed toverticalPassFirst.
This version of the code is now included in the project that inspired it, Paul Hudson’s Inferno shader pack.