[Tutorial]Outer Stroke Effect for 2D Sprites
Cocos
APRIL 18, 2024
Remember the previous article, where we used the image’s Alpha to find edges, determining whether there were pixels with Alpha of 0 around the image. Consider the characteristics of this rt; apart from the tree where Alpha is greater than 0, the rest of the Alpha is 0. aExtend is the expanded Alpha.
Let's personalize your content