Hi,
I wanna implement dynamic lighting for SkeletonAnimation class in cocos2dx.
For Sprite class it can be done using EffectSprite class which has implemented in cpp-test in cocos2dx.
I have implement the same process with SkeletonAnimation and name it EffectSkeletonAnimation.
Everything went well except that when I call setGLProgramState function (for setting the light effect) the position of EffectSkeletonAnimation object reset to left corner of screen.
For example if we set the position of object to middle of screen after calling setGLProgramState function the position will reset.
I wonder that what's the problem with setGLProgramState and SkeletonAnimation ?
Thanks