cocos2d/cocos2d-iphone — pull request #731 by osinoleg (2014-05-02 23:56:49+00:00)
Title: CCEffects

Added CCEffects - not really ready for consumption yet.

After adding multi pass rendering support, I had to break a lot of functionality for CCEffects - here is a list of things that need to be fixed.

Main issues:
* CCEffectNodes that use mutli pass effects will not auto draw correctly (as in, you can't add the correctly node to the scene, although you can tread it like a ccrendertexture and just call [node visit], then use the effectnodes texture).

* CCEffects with mutli pass rendering don't stack - work in progress.
* CCEffectNodes output texture does not blend correctly with the scene.

Minor issues:
* I stubbed out the ability to set CCEffects on CCSprites for now, waiting to resolve the above issues first.
* Allow more than one CCShader to be used per CCEffect, this will help with optimization and avoid a crazy uber/branching shader.