Hello Guest

Author Topic: Can I use premultipliedAlpha in runtime spritecollection?  (Read 4066 times)

sagolboss

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 2
    • View Profile
Can I use premultipliedAlpha in runtime spritecollection?
« on: September 30, 2013, 05:29:22 pm »
Hi there.

I want to use premultipliedAlpha in runtime spritecollection.
I will make this function.
Is it have performance issue or other problem?

Thanks.
« Last Edit: September 30, 2013, 05:31:13 pm by sagolboss »

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Can I use premultipliedAlpha in runtime spritecollection?
« Reply #1 on: September 30, 2013, 05:32:42 pm »
Premultiplied alpha modifies the texture. If you can create your texture with premultiplied alpha, then yes you can use it at runtime - all you need to do is use the correct shader.

sagolboss

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Can I use premultipliedAlpha in runtime spritecollection?
« Reply #2 on: September 30, 2013, 05:34:41 pm »
Thank you for reply  :)