How can I do an outline for a texture based on alpha in cocos2d? I have a texture I want everywhere the alpha crosses from 0 to non zero or something like that to draw a line so it would just outline everything.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I solved it myself by copying the image to memory and then using it:
I used a render texture, but if you don’t want to use one, I added comments on what to change