I am using a 3D animation (CCLens3d) and a lightning effect which uses OpenGL rendering (I might be wrong so please check the example project).. Lightning project can be found here. If I don't use my 3D animation, everything is fine.. but when I use it, all other sprites are redrawn according to the current color of the lightning.. How can I fix this? Thanks..
Here is some code
CCLens3D *lens =
[CCLens3D actionWithPosition:ccp(winsize.width/2, winsize.height/2)
radius:200
grid:ccg(50, 50)
duration:2.0];
Lightning *lightning = [Lightning lightningWithStrikePoint:ccp(200,300)
strikePoint2:ccp(250, 40)];
[self addChild:lightning z:1];