- Modifié
[cocos2d-x3.2] SkeletonAnimatio as stencil of clippingnode
i want to make a SkeletonAnimation shadow , so i made SkeletonAnimation as clippingnode stencil to mask a black sprite
but the SkeletonAnimation will always appear at (0,0) , no matter i change the position, rotation, scale , made spine as childnode of node, direct change matrix in drawskeleton, its alway show origin size rotation at (0,0)
whats happen?
its work correct if i set sprite as clippingnode stencil
no one know? = =
finally i solve it. its not a cocos bug. just spine use different vetex shader.
to show it correct you need take care the spine vertex shader.
Glad you worked it out! Got a screenshot or video?
I second the request for a screenshot/video! I would love to see how the effect turned out.
ok i will try a spineboy demo
here is a quick demo, and first upload on youtube....
https://www.youtube.com/watch?v=7XqKjoN ... e=youtu.be
Looks great thanks!
Very nice!