Blurring a CCSprite so it looks out of focus

I am layering my game with a background, midground, and foreground. I’d like all the sprites in the midground to appear blurry like they are out of focus in the distance. What’s the best way of doing this without just editing the resource image? (I reuse some of the same images for the foreground sprites)

:slight_smile: specify a shader with blur effect to all your midground sprites

Thank you for your help. I’m not familiar with shaders yet. Is there documentation on how they are implemented?

You can refer to the implementation ofSpriteBlur in tests/Classes/ShaderTest/ShaderTest.cpp.

Thanks a lot.