Hello Guest

Author Topic: alpha masking sprites  (Read 3952 times)

rylgh

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 5
    • View Profile
alpha masking sprites
« on: December 19, 2013, 08:12:51 am »
Hey,

I'd like to mask off part of sprites with the contents of another sprite.

So for example I've got this sprite and I'd like to mask it with this one
so that this is the result

Is this possible, and if so how would I go about it? I'm not experienced with shaders so I may be missing an obvious method.
Thanks!

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: alpha masking sprites
« Reply #1 on: December 19, 2013, 11:49:35 pm »
There is a shader posted here which should do the job.
http://2dtoolkit.com/forum/index.php/topic,1700.0.html