There are a lot of questions about how to do blur in SpriteKit, most of which seem to use a CIGaussianBlur
filter. I have done this, but it seems to be slow for blurring large images, and there are other issues such as the blurring at the edges.
The UIBlurEffect
seems to be the perfect tool for UIKit views, and my understanding is that it is optimised and performant and it seems that it would the best effect if it worked in SpriteKit.
What I am wondering is if somehow it is possible to leverage the UIKit blur while in SpriteKit. For example, take a UIImage
, fake a UIKit UIImageView
somehow, blur it, grab the blurred image and then use it as a texture in an SKSpriteNode
.
I am not looking to blur the whole scene, just one node in it, and I don't want to use any third party libraries.