wantnon / EffectNodes-for-cocos2dx

special effects collection for cocos2dx
MIT License
460 stars 286 forks source link

v3: pass uniform value should use cocos2dx 3.x style #2

Open wantnon2 opened 9 years ago

wantnon2 commented 9 years ago

currently in EffectNodes v3, because it's translated from v2, for convenience, i use a customCommand to pass uniform value, this is not efficient and comfortable to code, i should modify it to cocos2dx 3.x style: set uniform values to program and cache, but do not pass to glProgram immediately, actual pass uniform values happens automatically when the command is being executed. reference to cocos2dx 3.x samples.