简体   繁体   English

如何在Cocos2d中创建CCLayer的模糊效果部分?

[英]How do I create a blurred effect section of a CCLayer in Cocos2d?

Is there any way to "make" a rectangular section of a CCLayer blurred? 有没有办法“制作”CCLayer的矩形部分模糊?

Either by making a masking layer over the game layer, or by actually blurring part of the game layer? 通过在游戏层上制作遮罩层,还是通过实际模糊部分游戏层?

Well, I guess I found an answer... 好吧,我想我找到了答案......

https://github.com/manucorporat/AWTextureFilter/tree/master/AWTextureFilter https://github.com/manucorporat/AWTextureFilter/tree/master/AWTextureFilter

Its pretty cool. 它太酷了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM