Cocos2d 3 (Blur) Shader

Here on StackOverflow, similar questions for v2 were posted earlier. However, they all point to tutorials using an older version of cocos2d. And in those tutorials, the shaderProgram CCNode property is used to add a shader, however this property does not exist in Cocos2d 3.

How am I supposed to go now? My goal is to blur the whole screen (live).

+4
source share
1 answer

From what I can see in the github cocos2d file, the property declaration has shaderProgrambeen moved to the header file CCNode_Private.h.

#import "CCNode_Private.h"where you need it should work.

0
source

Source: https://habr.com/ru/post/1528764/


All Articles