Hello, Does anybody know any sample code on:
- - how to create attachments programatically in cocos2d v3? Specifically RegionAttachments from a custom CCTexture that I get from a CCSprite that is not in the skeleton atlas.
2 .- how to tint the color of specific regionAttachments. with the current run-time shader I can write:
//from spineboy example
spSlot* sl = [skeletonNode findSlot:@"mouth"];
CCColor *col = [CCColor blueColor];
sl->r = sl->data->r = col.red;
sl->g = sl->data->g = col.green;
sl->b = sl->data->b = col.blue;
will tint the mouth blue (R:0; G:0: B:1), however if I use any color that contains an RGB value that is not 1 or 0 example ([CCColor colorWithRed:0.6 green:0.4 blue:0.2 alpha:1]😉, it doesn't work. For instance if I replace [CCColor blueColor] with [CCColor brownColor], I don't see any brown tinting.