In cocos2d-2.0-rc0a-x-2.0 i successfully use my own shaders. But when i migrated my project to cocos2d-2.1beta3-x-2.1.0 all sprites with my any of my shaders has disappeared.
below is snippet of code that work properly with cocos2d-2.0-rc0a-x-2.0 but don’t with cocos2d-2.1beta3-x-2.1.0
Hi, Sherry Haibara. I have created almost the same post after this and Minggo Zhang told me that they changed uniform name from u_MVPMatrix to CC_MVPMatrix. And you should not to declare this variable because they add code responsible for declaration CC_MVPMatrix to you shader before it has been compiled. So i just comment out declaration line: //uniform mat4 u_MVPMatrix; and in the rest of my code replaced u_MVPMatrix to CC_MVPMatrix.
I am just starting to play around with shaders and am trying to use your post and the other one above as a jumping off point. I have made the changes mentioned regarding the CC_MVPMatrix and such. The issue is I am getting the following error:
Cocos2d: cocos2d: ERROR: 0:23: Use of undeclared identifier 'gl_FragColor'