- 已编辑
shadow of skeletonAnimation
using cocos2dx 3.x
Really cool! Any chance you can show the code for how it is done?
6 天 后
i don't have a compilable demo project now.
but its simple too.
when someone want to use clipping node in cocos, you need set "content" and "stencil"
just set content as a black sprite, stencil as spine, then adjust opacity of black sprite
u will get a shadow of spine.
ps. take care different shader between spine and stencil of clipping node.