stevetranby / cocos2dx-shader-cookbook

Cocos2d-x Shader Cookbook
MIT License
77 stars 23 forks source link

How to do something outside Sprite? #2

Open xahon opened 6 years ago

xahon commented 6 years ago

I created a ball Sprite with transparent background. I want to create a light tail when it moves with length depending on its speed. If I pass all the needed data through attributes how do I do it outside the sprite?