Skip to content

Instantly share code, notes, and snippets.

@sdabet
Created January 28, 2013 13:03
Show Gist options
  • Save sdabet/4655357 to your computer and use it in GitHub Desktop.
Save sdabet/4655357 to your computer and use it in GitHub Desktop.
CCSprite *mask = [CCSprite spriteWithFile:@"mask.png"];
mask.blendFunc = (ccBlendFunc) { GL_ONE_MINUS_DST_ALPHA, GL_DST_ALPHA };
[scene addChild: mask];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment